cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1533
Views
0
Helpful
3
Replies

Help with top.tcl

akieser
Level 1
Level 1

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 3

Joe Clarke
Cisco Employee
Cisco Employee

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

same one from this post from top.zip

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

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

top -f FlowMonitor1

Getting Started

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: