[c-nsp] cpu usage per linecard weirdness

Pierfrancesco Caci p.caci at seabone.net
Mon Jul 10 09:05:18 EDT 2006


Hi, 

why if I gather the cpu usage from the command line I get (among the
other linecards) the Stanby processor, while if I do the same request
via snmp (using cisco-process-mib) I get the active one?

Example on a 12406 running 12.0.26(S6):

 ========= Line Card (Slot 0) =========
 CPU utilization for five seconds: 14%/1%; one minute: 16%; five
 minutes: 16%
 
 ========= Line Card (Slot 1) =========
 CPU utilization for five seconds: 35%/2%; one minute: 18%; five
 minutes: 18%
 
 ========= Line Card (Slot 2) =========
 CPU utilization for five seconds: 22%/0%; one minute: 11%; five
 minutes: 11%
 
 ========= Standby GRP (Slot 5) =========
 CPU utilization for five seconds: 0%/0%; one minute: 0%; five
 minutes: 0%
   12           0   7413272          0  0.00%  0.00%  0.00%   0 Test
 CPUHOG proc 


Output of a script that walks cpmCPUTotalPhysicalIndex and then finds
out which slot is which inside the entity mib:

29      slot 4  PRP-2, HwVer#:0.0, SwVer#:12.0
32      slot 1  3 port Gigabit Ethernet, HwVer#: 2.0, SwVer#: 0.0
36      slot 0  enhanced 1 port POS OC48 short reach SC connector, HwVer#: 1.1, SwVer#: 0.0
38      slot 2  4 port 0C3 POS single mode, HwVer#: 1.1, SwVer#: 0.0


As you can see, I get slots 0,1,2,5 from the cli, while I get 0,1,2,4
from snmp....

Pf


-- 


-------------------------------------------------------------------------------
 Pierfrancesco Caci | Network & System Administrator - INOC-DBA: 6762*PFC
 p.caci at seabone.net | Telecom Italia Sparkle - http://etabeta.noc.seabone.net/
Linux clarabella 2.6.12-10-686-smp #1 SMP Sat Mar 11 16:41:12 UTC 2006 i686 GNU/Linux



More information about the cisco-nsp mailing list