cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
808
Views
0
Helpful
1
Replies

capture Top 25 CPU process

sajanpainel
Level 1
Level 1

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

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

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.

Review Cisco Networking for a $25 gift card