This EEM won’t cause any risk on the switch , it will be automatically detected that HIGH CPU and it will storage some information that will help me out to analyze the cause of the
This is the EEM script:
event
manager applet High_CPU
event snmp
oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 get-type exact entry-op gt
entry-val
80 exit-op lt exit-val 75 poll-interval 1
action 0.0
syslog msg "High CPU DETECTED."
action 0.1
cli command "enable"
action 0.2
cli command "show process cpu sorted | append
NVRAM:high_cpu1.txt"
action 0.3
cli command " Show processes memory sorted | append
NVRAM:high_cpu2.txt"
action 0.4
cli command " Show process cpu history | append
NVRAM:high_cpu3.txt"
No comments:
Post a Comment