event manager applet cpu_stats
event snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 get-type exact entry-op ge entry-val "50" exit-op lt exit-val "40" poll-interval 15
action 1.1 syslog msg "------HIGH CPU DETECTED----, CPU: $_snmp_oid_val %"
action 1.2 cli command "enable"
action 1.3 cli command "undebug all"
action 1.4 cli command "show clock | append bootdisk:cpu_stats"
action 1.5 cli command "show log | append bootdisk:cpu_stats"
action 1.6 cli command "show proc cpu sort | append bootdisk:cpu_stats"
action 1.7 cli command "debug netdr capture rx"
action 1.8 cli command "show netdr capture | append bootdisk:cpu_stats"
action 1.9 cli command "show tcp brief | append bootdisk:cpu_stats"
event snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 get-type exact entry-op ge entry-val "50" exit-op lt exit-val "40" poll-interval 15
action 1.1 syslog msg "------HIGH CPU DETECTED----, CPU: $_snmp_oid_val %"
action 1.2 cli command "enable"
action 1.3 cli command "undebug all"
action 1.4 cli command "show clock | append bootdisk:cpu_stats"
action 1.5 cli command "show log | append bootdisk:cpu_stats"
action 1.6 cli command "show proc cpu sort | append bootdisk:cpu_stats"
action 1.7 cli command "debug netdr capture rx"
action 1.8 cli command "show netdr capture | append bootdisk:cpu_stats"
action 1.9 cli command "show tcp brief | append bootdisk:cpu_stats"
not sure if 4500 supports netdr capture.
ReplyDeleteSorry ... it was for 6500, changing the subject line
ReplyDelete