Switches, Hubs, and Modems
1751840 Members
5273 Online
108782 Solutions
New Discussion юеВ

Re: MRTG OIDs for HP9308 Switch CPU

 
Leo Chicote
Occasional Advisor

MRTG OIDs for HP9308 Switch CPU

Any one know the OID on the HP9308 switch for monitoring CPU Utilization?
17 REPLIES 17
Ron Kinner
Honored Contributor

Re: MRTG OIDs for HP9308 Switch CPU

I hope you appreciate this. It's 1.3.6.1.4.1.11.2.14.11.5.1.9.6.1

I had to download a 20 meg demo program called oidview (from
http://www.oidview.com/oidview.html)

and install it then get the MIB pack from HP.

http://www.hp.com/cposupport/swindexes/mibsforhps11110_swen.html

and put it in the MIB folder for oidview and then tell it I wanted the statistics package hpSwitchStat.mib. Of course it then wanted another package but once I showed it where the first one was it went and found all of the others itself.

-- HP Enterprise Switch Statistics MIB


STATISTICS-MIB DEFINITIONS ::= BEGIN

IMPORTS
Counter, IpAddress
FROM RFC1155-SMI
OBJECT-TYPE
FROM RFC-1212
DisplayString
FROM RFC1213-MIB
HpSwitchPortType
FROM HP-ICF-TC
hpSwitch
FROM HP-ICF-OID;

....

hpSwitchCpuStat OBJECT-TYPE
SYNTAX INTEGER (0..100)
ACCESS read-only
STATUS mandatory
DESCRIPTION "The CPU utilization in percent(%)."
::= { hpSwitchMiscStat 1 }

It would have been a lot easier if I'd had one of these switches to play with. Then just load the HPmibs into getif and point it at the switch and walk down to it.

Ron

Sergejs Svitnevs
Honored Contributor

Re: MRTG OIDs for HP9308 Switch CPU

.iso.org.dod.internet.private.enterprises.hp.nm.icf.hpicfObjects.hpicfSwitch.hpSwitch.hpSwitchStatistics.hpSwitchMiscStat.hpSwitchCpuStat

or

.1.3.6.1.4.1.11.2.14.11.5.1.9.6.1

HP MIBs can be found at http://www.hp.com/rnd/software

To find the MIB / OID in the future you may need to use a SNMPwalk type of program.

Regards,
Sergejs
Leo Chicote
Occasional Advisor

Re: MRTG OIDs for HP9308 Switch CPU

Thanks guys really appreciate
this...However, now I'm having problem loading the oid into my mrtg graph. Its not taking the oid that you guys provided.
Ron Kinner
Honored Contributor

Re: MRTG OIDs for HP9308 Switch CPU

What does your MRTG config file entry look like for the CPU Utilization? Exactly what error are you getting. Did you specify two OIDs on the target line? Did you set the gauge option? Did you set the MaxBytes to 100? Following is from one of my working mrtg.cfg files which measure input and output air temp on a cisco 7500 router:

Target[NELTemp]: 1.3.6.1.4.1.9.9.13.1.3.1.3.1&1.3.6.1.4.1.9.9.13.1.3.1.3.2:public@10.10.10.1

Options[NELTemp]: nopercent,gauge
YLegend[NELTemp]: Degrees C
ShortLegend[NELTemp]: C
Legend1[NELTemp]: Incoming Air Temp
Legend2[NELTemp]: Outgoing Air Temp
MaxBytes1[NELTemp]: 100
MaxBytes2[NELTemp]: 100
Title[NELTemp]: NEL Air Temp
PageTop[NELTemp]:

NEL Air Temp



What does your MRTG run on? If Windows use getif to query the box and see what it gives you for that value.

http://www.wtcs.org/snmp4tpc/getif.htm

If *nix one of the snmpwalk or snmpget programs should do the same.

Run
Leo Chicote
Occasional Advisor

Re: MRTG OIDs for HP9308 Switch CPU

The error message is "Skipping update inlast and outlast is not defined"

Here's the entire script:

Target[hp9308_cpu]: 1.3.6.1.4.1.11.2.14.11.5.1.9.6.1&1.3.6.1.4.1.11.2.14.11.5.1.9.6.1:public@10.100.1.2
MaxBytes[hp9308_cpu]: 100
Options[hp9308_cpu]: nopercent, gauge, unknaszero
Title[hp9308_cpu]: dw9308-1
PageTop[hp9308_cpu]:

CPU Utilization dw9308-1


YLegend[hp9308_cpu]: CPU Utilization
ShortLegend[hp9308_cpu]: %
LegendI[hp9308_cpu]: CPU
LegendO[hp9308_cpu]: .
Legend1[hp9308_cpu]: CPU Utilization
Legend2[hp9308_cpu]: .
Legend3[hp9308_cpu]: Max value per interval on graph
Legend4[hp9308_cpu]: .
Colours[hp9308_cpu]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
WithPeak[hp9308_cpu]: ymw
Unscaled[hp9308_cpu]: dwmy
Ron Kinner
Honored Contributor

Re: MRTG OIDs for HP9308 Switch CPU

Try adding a .0 to the OID if that doesn't work try a .1. Could be that the MIB is allowing for the possibility of multiple CPUs.

Ron
Leo Chicote
Occasional Advisor

Re: MRTG OIDs for HP9308 Switch CPU

I already tried entering both 0 and 1 and still get error message "did not eval into defined data" and " inlast and outlast is not defined."
Any ideas what could be wrong???
Sergejs Svitnevs
Honored Contributor

Re: MRTG OIDs for HP9308 Switch CPU

Try next OIDs:
1.3.6.1.4.1.11.2.14.11.5.1.9.6.0
or
1.3.6.1.4.1.11.2.14.11.5.1.9.6.1
or
1.3.6.1.4.1.11.2.14.11.5.1.9.6.2

Regards,
Sergejs
Leo Chicote
Occasional Advisor

Re: MRTG OIDs for HP9308 Switch CPU

0, 1 or 2 didn't work......I don't think these are the right OID's. When I used OIDView Professional, the variable name hpSwitchCPUStat has no data instances which is why it isn't generating any output on my graph.