07-12-2013 03:17 AM
Hello Community,
Attached is a script originally posted by Joseph.
When I apply the script I get the following error message:
R2(config)#event manager policy switchstats.tcl
Compile check and registration failed:policy file does not start with event register cmd: file
Tcl policy execute failed: policy file does not start with event register cmd: file
Embedded Event Manager configuration: failed to retrieve intermediate registration result for policy switchstats.tcl: Unknown error 0
I was wondering if someone could take a quick look and let me know what the problem is/
Cheers
07-12-2013 06:47 AM
Hello Community,
I realised what I was doing wrong, so please ignore the original post.
However, I get the following error on line 22 when I run the script.
uk0149_SW2960_100Cheapside#tclsh switchstats.tcl
extra characters after close-quote
while executing
"puts $filename "switch, interface, packets input,bytes,no buffer,broadcasts,multicasts,runts,giants,throttles,input errors,CRC,frame,overrun,ignored,w..."
(file "switchstats.tcl" line 22)
Line 22 is:
puts $filename "switch, interface, packets input,bytes,no buffer,broadcasts,multicasts,runts,giants,throttles,input errors,CRC,frame,overrun,ignored,watchdog,multicast,pause input,input packets with dribble condition detected,packets output,bytes,underruns,output errors,collisions,interface resets,babbles,late collision,deferred,lost carrier,no carrier,PAUSE ,output buffer failures,output buffers swapped out"
Can you help?
Cheers
07-12-2013 06:58 AM
Community,
Its working fine.
Problem was copying over with tftp
Cheers
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide