10-10-2013 06:21 AM
So upload and configured the top.tcl on one of our remote routers, but getting an error when trying to run the script;
flow record FlowRecord1
match ipv4 protocol
match ipv4 source address
match ipv4 destination address
match transport source-port
match transport destination-port
match interface input
collect interface output
collect flow direction
collect counter bytes
collect counter packets
collect timestamp sys-uptime first
flow monitor FlowMonitor1
record FlowRecord1
cache timeout active 86520
cache entries 32768
interface GigabitEthernet0/0
description User LAN
ip address 10.x.x.x 255.255.255.0
ip flow monitor FlowMonitor1 input
ip flow monitor FlowMonitor1 output
ip flow ingress
duplex full
speed 100
arp timeout 3600
event manager directory user policy "flash:/"
event manager scheduler script thread class Z number 5
event manager policy top.tcl type user class Z
==================================================
When tyring to run "top"
get the following error;
vpn-rt1#top
Standby...
SRCIP DSTIP APPLICATION PROT DIRN Start AvgBit/s AvgPkt/s
===================================================================================
Error: can't read "byteslist": no such variable
Any thoughts?
10-10-2013 07:32 AM
I'm not familiar with this policy. Can you post it?
10-10-2013 07:48 AM
same one from this post from top.zip
10-10-2013 07:55 AM
It looks like this script needs to be run with a -f option to specify the flow monitor name. For example:
top -f FlowMonitor1
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: