Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Help with top.tcl

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?

3 REPLIES
Cisco Employee

Help with top.tcl

I'm not familiar with this policy.  Can you post it?

New Member

Help with top.tcl

same one from this post from top.zip

https://supportforums.cisco.com/thread/2237870?tstart=30

Cisco Employee

Help with top.tcl

It looks like this script needs to be run with a -f option to specify the flow monitor name.  For example:

top -f FlowMonitor1

467
Views
0
Helpful
3
Replies
CreatePlease to create content