Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

EEM applet that triggers on high CPU utilization

Hi Folks,

I am trying to create an eem applet which triggers on high cpu utilization (detected by erm).   The applet should then tftp the output from "show proc cpu sorted" to a tftp server.   

I am trying to configure this on a 1841 running 124-24.T3 code

This is my config:

resource policy

  policy HighGlobalCPU global

   system

    cpu total

     critical rising 5 falling 2 interval 10

    cpu process

     critical rising 5 falling 2 interval 10

! I'm not sure whether it is correct to monitor 'cpu total' or 'cpu process'.   The rising thresholds are deliberately low to maker testing easier


event manager applet ReportHighCPU

event resource policy "HighGlobalCPU"

action 1.0 cli command "show process cpu sorted 5sec | redirect tftp://192.168.1.1/highCPU$_resource_time_sent.txt"

action 2.0 syslog priority debugging msg "high cpu event detected, output tftp sent"

The problem is that I can't seem to trigger the applet.    I have generated enough traffic to push the cpu utilization to over 30% (according to 'show proc cpu'), but the applet does not appear to trigger (no syslog messages appear, and my syslog server does not receive anything).

If anyone can tell me what I've done wrong here I would be very grateful!

Thanks,

Darragh

2 REPLIES
Community Member

Re: EEM applet that triggers on high CPU utilization

I am just replying off the top of my head but I believe you

need to also add to your conf the line

user global HighGlobalCPU

Community Member

Re: EEM applet that triggers on high CPU utilization

Thanks you so much Gerard!   I think that's exactly what I was missing!

417
Views
5
Helpful
2
Replies
CreatePlease to create content