[nsp] Monitor GSR Line Card CPU
Lars Erik Gullerud
lerik at nolink.net
Wed Apr 9 10:56:06 EDT 2003
OK, since I know for a fact that our monitoring system does what you are
looking for, I had to dig through some code to see how it is actually
implemented, since I didn't write the code in the first place.
The various branches under "1.3.6.1.4.1.9.9.109.1.1.1.1" gives you all
the info you need about all the linecards. First we walk the following
three branches:
1.3.6.1.4.1.9.9.109.1.1.1.1.3
1.3.6.1.4.1.9.9.109.1.1.1.1.4
1.3.6.1.4.1.9.9.109.1.1.1.1.5
These contain 5 second, 1 minute and 5 minute stats for all the CPU's in
the system. Then, to figure out which is which, we do the following.
Walk "1.3.6.1.4.1.9.9.109.1.1.1.1.2", which lists all the CPU's in the
system, and showing their corresponding entPhysicalIndex. These indexes
can then be looked up in the ENTITY-MIB. For instance, in one of my
GSR's, the above walk returns:
2.1 = 30
2.2 = 51
2.3 = 56
2.5 = 40
2.6 = 49
2.7 = 61
To find out what these cards are and what slot they are in, we fetch the
info from the ENTITY-MIB under "1.3.6.1.2.1.47.1.1.1.1.2" and
"1.3.6.1.2.1.47.1.1.1.1.7". E.g. to find the last card described above
(with entPhysicalIndex 61), we fetch:
1.3.6.1.2.1.47.1.1.1.1.2.61 = "3 port Gigabit Ethernet, HwVer#: 2.0,
SwVer#: 12.0"
1.3.6.1.2.1.47.1.1.1.1.7.61 = "slot 5"
And there you go. 3-port GigE card in Slot 5 is index 7 in the 5 sec, 1
min and 5 min values we retrieved. Of course, we don't look up the
ENTITY-MIB every time, only during discovery/rediscovery of the device.
/leg
On Wed, 2003-04-09 at 03:51, oioi wrote:
> Hello Lars,
>
> First,I wanna Thanks for your answer ;)
> I know "1.3.6.1.4.1.9.9.109.1.1.1.1.4.90" is the MIB for monitoring the CPU state on GRP
> What i don't know is the linecard CPU.
> For example :I have some DPT line card and POS line card in the GSR Chasis,and NOC want to monitor
> both the GRP (or Let's say Whole GSR's CPU) CPU and the Line Card's CPU State.
>
> Now the only way to monitor the linecard's CPU is just telnet in and issue the command below:
>
> "execute-on slot 10 sh proc cpu" if I want to monitor the SLot 10 Line card's CPU
> "execute-on slot 8 sh proc cpu" if I want to monitor the SLot 8 Line card's CPU
>
> So I haven't find a MIB to monitor the Linecard's CPU ;(
> ANyone Help?
>
> Tuesday, April 8, 2003, 5:36:35 PM, you wrote:
>
> LEG> On Tue, 2003-04-08 at 11:03, oioi wrote:
> >> Hello cisco-nsp,
> >>
> >> Cisco provide a way to Monitor GSR Line Card CPU Process by console access.
> >> GSR_1#execute-on slot 10 sh proc cpu
> >> ========= Line Card (Slot 10) =======
> >>
> >> CPU utilization for five seconds: 12%/6%; one minute: 13%; five minutes: 13%
> >> .......
> >>
> >> But I can't find A MIB to monitor it by SNMP.
> >> Anyone can tell me the MIB?
> >>
> >> Thanks ;)
>
> LEG> I believe what you want is the CISCO-PROCESS-MIB which has various CPU
> LEG> targets to retrieve this information. The values referring to CPU stats
> LEG> are found under the enterprises.9.9.109.1.1 tree.
> LEG> (enterprises.Cisco.ciscoMgmt.ciscoProcessMIB.ciscoProcessMIBObjects.cpmCPU)
>
> LEG> /leg
>
>
>
>
More information about the cisco-nsp
mailing list