Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

event manager help

hello experts

i need to make an event manager to send first 10 lines of "show process cpu" with email to me, when cpu process 5 min goes above 70%.

can u help please?

Everyone's tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Gold

event manager help

Hi there,

I think you have to use this object (cmpcputotal5minrev) for this application, with the following script:

event manager applet CPU5min

!

event ioswdsysmon sub1 cpu-proc taskname "cmpcputotal5minrev" op gt val 70 per 60

!

action 10 cli comman "enable"

action 20 cli command "show process cpu | inc ^C|^_P|^___[1-8]"

action 30 mail server [ip address] to [you@noc.com] from [router@me.com] subject "HIGH PROCESS Percent" body "$_cli_result"

you have to replace the addresses and with no [ ] n can change the email subject, it's just an example.

Hope it Helps,

Soroush.

Hope it Helps!

Soroush.
1 REPLY
Gold

event manager help

Hi there,

I think you have to use this object (cmpcputotal5minrev) for this application, with the following script:

event manager applet CPU5min

!

event ioswdsysmon sub1 cpu-proc taskname "cmpcputotal5minrev" op gt val 70 per 60

!

action 10 cli comman "enable"

action 20 cli command "show process cpu | inc ^C|^_P|^___[1-8]"

action 30 mail server [ip address] to [you@noc.com] from [router@me.com] subject "HIGH PROCESS Percent" body "$_cli_result"

you have to replace the addresses and with no [ ] n can change the email subject, it's just an example.

Hope it Helps,

Soroush.

Hope it Helps!

Soroush.
161
Views
0
Helpful
1
Replies
CreatePlease to create content