I need to what the PID using CPU utilization at 50%.
All i see on the syslog server is " %HA_EM-2-LOG: highcpu: HIGH CPU"
EEM doesnt tell me what process is consuming the CPU at 50%
event manager applet highcpu
event snmp oid 184.108.40.206.220.127.116.11.18.104.22.168.1.10.1 get-type exact entry-op ge entry-val 50 poll-interval 5
action 1.0 cli command "enable"
action 2.0 cli command "show proc cpu sorted"
action 3.0 syslog priority critical msg "HIGH CPU"
Your version of IOS may require another parameter. Try this version.
Right now it does. That is, the script will not execute unless the OVERALL CPU usage is at or above 50%. It will then email all processes which have a five second CPU utilization above 0%. This way, you can get an idea of ALL CPU consumers that contributed to the 50% overall CPU utilization. I thought this is what you would want. However, if you want to only see processes at or above 50% on their own, I can do that, but I do not think the script will provide useful data at that point.
Please support CSC Helps Haiti