Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

EEM/Tcl Script Assistance Part3

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

2 REPLIES
New Member

EEM/Tcl Script Assistance Part3

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

New Member

EEM/Tcl Script Assistance Part3

Community,

Its working fine.

Problem was copying over with tftp

Cheers

277
Views
0
Helpful
2
Replies
CreatePlease login to create content