Question on Cisco EEM Policies

Robert Drake rdrake at
Mon Jul 7 10:20:07 UTC 2014

On 7/6/2014 5:07 PM, Daniel van der Steeg wrote:
> Hello all,
> I have implemented two EEM Policies using TCL on a Cisco Catalyst 6500,
> both of them running every X seconds. Now I am trying to find a way to
> monitor the CPU and memory usage of these policies, to determine their
> footprint. Does anyone have a good idea how I can do this?

It looks like cpmProcExtUtil5SecRev is what you need.   This should be 
available but it might depend on your IOS. CISCO-PROCESS-MIB shows all 
the different incarnations of it.  You can also use 
cpmProcExtMemAllocatedRev and cpmProcExtMemFreedRev to track memory usage.

Use cpmProcessName to find the process you want to monitor (in this case 
grepping for PID but you can look for name):

[rdrake at machine ~]$ snmpwalk -v2c -c community routername | grep 318
SNMPv2-SMI::enterprises. = STRING: "ISIS Upd PUR"

The 1.318 is the important bit.

[rdrake at machine ~]$ snmpwalk -v2c -c community routername | grep 318
SNMPv2-SMI::enterprises. = Gauge32: 0

One problem being that this is a percentage with a minimum resolution of 
1% (integer based) so even though this is the busiest process on the box 
I tested on, I always got zero percent.  It should be good for 
thresholding if you want to make sure your process doesn't spike the CPU 
though.  Also, the PID might change every reboot so long term monitoring 
might be problimatic unless you can associate the process name with the 
other thing.


Look at this for oids:

> Thanks,
> Daniel


More information about the NANOG mailing list