Online Expert Day - HPE Data Storage - Live Now
April 24/25 - Online Expert Day - HPE Data Storage - Live Now
Read more
Comware Based
cancel
Showing results for 
Search instead for 
Did you mean: 

SNMP OID's for CPU, Mem and Temp

drolfe
Valued Contributor

SNMP OID's for CPU, Mem and Temp

HI,

 

I'm trying to setup a custom dash to monitor some snmp data from the below switch:

 

<HP-5900-Stack>dis version
HP Comware Software, Version 7.1.045, Release 2311P01
Copyright (c) 2010-2014 Hewlett-Packard Development Company, L.P.
HP 5900AF-48XG-4QSFP+

 

Can anyone tell me which SNMP OID's can be used to pull details of CPU, Mem and Temp.

 

I'm using the below already for interface stats which is working well

 

#SNMP OID values for IF-MIB::ifHCOutOctets and IF-MIB::ifHCInOctets
lookup_values = [ "1.3.6.1.2.1.31.1.1.1.10", "1.3.6.1.2.1.31.1.1.1.6" ]

 

Regards, Daniel

4 REPLIES
sdide
Respected Contributor

Re: SNMP OID's for CPU, Mem and Temp

Hi drolfe

 

you might want to look into the ENTITY-MIB and   HH3C-ENTITY-EXT-MIB

 

e.g.

ENTITY-MIB for indices.

 

$snmpwalk <version and community> <ip-address> ENTITY-MIB::entPhysicalDescr

ENTITY-MIB::entPhysicalDescr.1 = STRING: HP
ENTITY-MIB::entPhysicalDescr.2 = STRING: HP 5900AF-48XG-4QSFP+ Switch Software Version 7.1.045
ENTITY-MIB::entPhysicalDescr.12 = STRING: CONTAINER LEVEL1
ENTITY-MIB::entPhysicalDescr.13 = STRING: CONTAINER LEVEL1
ENTITY-MIB::entPhysicalDescr.14 = STRING: CONTAINER LEVEL1
ENTITY-MIB::entPhysicalDescr.15 = STRING: CONTAINER LEVEL1
ENTITY-MIB::entPhysicalDescr.16 = STRING: CONTAINER LEVEL1
ENTITY-MIB::entPhysicalDescr.17 = STRING: CONTAINER LEVEL1
ENTITY-MIB::entPhysicalDescr.18 = STRING: CONTAINER LEVEL1
ENTITY-MIB::entPhysicalDescr.19 = STRING: CONTAINER LEVEL1
ENTITY-MIB::entPhysicalDescr.20 = STRING: CONTAINER LEVEL1
ENTITY-MIB::entPhysicalDescr.21 = STRING: CONTAINER LEVEL1
ENTITY-MIB::entPhysicalDescr.112 = STRING: MODULE LEVEL1
ENTITY-MIB::entPhysicalDescr.113 = STRING: PSU
ENTITY-MIB::entPhysicalDescr.114 = STRING: PSU
ENTITY-MIB::entPhysicalDescr.116 = STRING: FAN UNIT
ENTITY-MIB::entPhysicalDescr.117 = STRING: FAN UNIT
ENTITY-MIB::entPhysicalDescr.118 = STRING: SENSOR
ENTITY-MIB::entPhysicalDescr.119 = STRING: SENSOR
ENTITY-MIB::entPhysicalDescr.212 = STRING: CONTAINER LEVEL2
ENTITY-MIB::entPhysicalDescr.213 = STRING: CONTAINER LEVEL2
ENTITY-MIB::entPhysicalDescr.214 = STRING: CONTAINER LEVEL2
ENTITY-MIB::entPhysicalDescr.215 = STRING: CONTAINER LEVEL2
ENTITY-MIB::entPhysicalDescr.216 = STRING: CONTAINER LEVEL2
ENTITY-MIB::entPhysicalDescr.217 = STRING: CONTAINER LEVEL2
ENTITY-MIB::entPhysicalDescr.272 = STRING: MODULE LEVEL2
ENTITY-MIB::entPhysicalDescr.332 = STRING: Ten-GigabitEthernet1/0/1
ENTITY-MIB::entPhysicalDescr.333 = STRING: Ten-GigabitEthernet1/0/2
ENTITY-MIB::entPhysicalDescr.334 = STRING: Ten-GigabitEthernet1/0/3
ENTITY-MIB::entPhysicalDescr.335 = STRING: Ten-GigabitEthernet1/0/4

...

 

some of these indices are interesting 112,118,119.

 

you can now look into HH3C-ENTITY-EXT-MIB using those indices

for example HH3C-ENTITY-EXT-MIB::hh3cEntityExtTemperature.118

will give you the temperature of sensor 1 (whereever that is)

 

I think some, if not all, of the entries you're looking for is in HH3C-ENTITY-EXT-MIB.

Regards.

 

 

 

Søren Dideriksen, Network Administrator
Region Midtjylland
drolfe
Valued Contributor

Re: SNMP OID's for CPU, Mem and Temp

HI, Thanks for the reply, Sorry for the delay, I didn't see the reply notification to this thread

 

I've had a look, any advise on how to get the mibs installed as they look to be missing ?

 

root@ruby:/# snmpwalk -v2c -c xxxxxxx xxx.xxx.xxx.xxx ENTITY-MIB::entPhysicalDescr
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (ENTITY-MIB): At line 0 in (none)
ENTITY-MIB::entPhysicalDescr: Unknown Object Identifier
root@ruby:/#
root@ruby:/#
root@ruby:/# snmpwalk -v2c -c xxxxxxx xxx.xxx.xxx.xxx iso.3.6.1.2.1.1.1.0
iso.3.6.1.2.1.1.1.0 = STRING: "HP Comware Platform Software, Software Version 7.1.045, Release 2311P01
HP 5900AF-48XG-4QSFP+ Switch
Copyright (c) 2010-2014 Hewlett-Packard Development Company, L.P."
root@ruby:/#

 

drolfe
Valued Contributor

Re: SNMP OID's for CPU, Mem and Temp

This fixed the MIB issue

 

https://l3net.wordpress.com/2013/05/12/installing-net-snmp-mibs-on-ubuntu-and-debian/

 

$ sudo apt-get install snmp-mibs-downloader
$ sudo download-mibs

 

Now I just need to find what I'm after

sdide
Respected Contributor

Re: SNMP OID's for CPU, Mem and Temp

hi drolfe

 

you might also want to download the HP specific MIBs ("My network"- software downloads, has the mibs listed at the bottom)

the current realease is called MIBs_V8.zip. Unzip the "hh3c-*.mib" ones in

 

/usr/share/snmp/mibs/ (or some other searchpath for snmp-tools)

 

and you should be fine.

 

Regards.

 

Søren Dideriksen, Network Administrator
Region Midtjylland