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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

capture Top 25 CPU process

How can i capture top 25 process utilising maximum router CPU and send mail using an  EEM program?

it tried this

event manager applet CPU

event none

action 101 cli command "enable"

action 102 cli command "terminal length 12"

action 103 cli command "show proc cpu sorted 5min"

action 104 syslog msg "$_cli_result"

but i need only top 25 and that to send as mail

My IOS ver is 12.4(15)

Please help

Everyone's tags (3)
1 REPLY
Cisco Employee

Re: capture Top 25 CPU process

You can't do this using applets with 12.4(15)T.  You will need to use Tcl.  Alternatively, you might try using "show proc cpu sort 5min | exc 0.00".  That will limit the output to those processes with at least some CPU activity.

382
Views
0
Helpful
1
Replies
CreatePlease login to create content