cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1069
Views
0
Helpful
2
Replies

tcl or applet for "show platform hardware capacity rewrite-engine drop"

XI Chen
Cisco Employee
Cisco Employee

Dear Experts,

I am freshman for EEM usage, but i want to use the tcl or applet to detect if there is any multicast performance issue on 6509 switch. 

F340.08.11-6500-4#show platform hardware capacity rewrite-engine drop
slot channel packet drops total overruns
----+-------+--------------------+--------------+
1 0 0 0
1 1 0 0
3 0 0 0
3 1 0 0
4 0 0 0
4 1 0 0

i.e. 6509 can detect the "packet drops" or "overruns" increment then indicate which channel on which slot have the issue then send a customize log and shut down some interfaces to decrease the multicast traffic with lower priority.  I don't know if i can use applet but as far as i know there is no such a syslog or snmp generated...

if i have to use the tcl, the version is below. Could somebody help to indicate which way i can do or even a test script? -:)

Thanks very much!

F340.08.11-6500-4#show event manager version
Embedded Event Manager Version 4.00
Component Versions:
eem: (rel1)1.0.11
eem-gold: (rel1)1.0.2
eem-call-home: (rel1)1.0.5
Event Detectors:
Name Version Node Type
application 01.00 node0/0 RP
identity 01.00 node0/0 RP
mat 01.00 node0/0 RP
rf 01.00 node0/0 RP
routing 02.00 node0/0 RP
syslog 01.00 node0/0 RP
track 01.00 node0/0 RP
cli 01.00 node0/0 RP
counter 01.00 node0/0 RP
interface 01.00 node0/0 RP
ioswdsysmon 01.00 node0/0 RP
ipsla 01.00 node0/0 RP
none 01.00 node0/0 RP
oir 01.00 node0/0 RP
snmp 01.00 node0/0 RP
snmp-object 01.00 node0/0 RP
snmp-notification 01.00 node0/0 RP
timer 01.00 node0/0 RP
nf 01.00 node0/0 RP
test 01.00 node0/0 RP
config 01.00 node0/0 RP
env 01.00 node0/0 RP
ds 01.00 node0/0 RP
crash 01.00 node0/0 RP
gold 01.00 node0/0 RP
rpc 01.00 node0/0 RP

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

This should work.

action 001 cli command "enable"

action 002 cli command "show platform hardware capacity rewrite-engine drop"

action 003 foreach line "$_cli_result" "\n"

action 004  regexp "^[0-9]+[[:space:]]+[0-9]+[[:space:]]+([0-9]+)[[:space:]]+([0-9]+)" $line match drops overruns

action 005  if "$_regexp_result" eq "1"

action 006   add $drops $overruns

action 007   if $_result gt 1

action 008   regexp "^([0-9]+)[[:space:]]+([0-9]+)" $line match slot channel

action 009   syslog msg "Saw $drops drops and $overruns overruns on slot $slot / channel $channel"

action 010  end

action 011 end

action 012 end

Do appreciate Joe for your support!  I will run in my test bed and come back if I have further questions. 

Thanks!

Chen Xi