Query disk information from HP Proliant Servers through SNMP

Written by - 1 comments

Published on August 8th 2013 - Listed in Hardware Unix Linux


Although ILO already shows a great deal of information for HP Proliant Servers, some important information is still missing, for example firmware versions.

Such additional informaiton can be read out through SNMP, if the snmp-agents/insight agents were installed.
The base OID to use for HP servers is: 1.3.6.1.4.1.232.
A well documented MIB can be found here: http://www.mibsearch.com/vendors/Compaq/mibview/CPQIDA-MIB

Here are some examples for disk/drive related lookups.

Show the current HP SmartArray Firmware version:

snmpwalk -v 2c -c public localhost 1.3.6.1.4.1.232.3.2.2.1.1.3
SNMPv2-SMI::enterprises.232.3.2.2.1.1.3.1 = STRING: "5.70"

 Check the current status for logical drives:

snmpwalk -v 2c -c public localhost 1.3.6.1.4.1.232.3.2.3.1.1.4
SNMPv2-SMI::enterprises.232.3.2.3.1.1.4.1.1 = INTEGER: 2
SNMPv2-SMI::enterprises.232.3.2.3.1.1.4.1.2 = INTEGER: 2
SNMPv2-SMI::enterprises.232.3.2.3.1.1.4.1.3 = INTEGER: 2
SNMPv2-SMI::enterprises.232.3.2.3.1.1.4.1.4 = INTEGER: 2

For each logical drive a status code is returned. Refer to the following table to translate:

1: other   8: wrongDrive
2: ok  9: badConnect
3: failed 10: overheating
4: unconfigured 11: shutdown
5: recovering 12: expanding
6: readyForRebuild 13: notAvailable
7: rebuilding 14: queuedForExpansion

Check the current status for physical drives:

snmpwalk -v 2c -c public localhost 1.3.6.1.4.1.232.3.2.5.1.1.6
SNMPv2-SMI::enterprises.232.3.2.5.1.1.6.1.8 = INTEGER: 2
SNMPv2-SMI::enterprises.232.3.2.5.1.1.6.1.9 = INTEGER: 2
SNMPv2-SMI::enterprises.232.3.2.5.1.1.6.1.10 = INTEGER: 2
SNMPv2-SMI::enterprises.232.3.2.5.1.1.6.1.11 = INTEGER: 2

Note that these are the physical drives. Use the following table to translate the returned number:

1: other 
 3: failed
2: ok
 4: predictiveFailure

Note: A predictiveFailure will be shown as "Smart Error" in ILO.


Also check out http://www.opennms.org/wiki/HP_Insight_Manager and http://www.kilala.nl/Sysadmin/index.php?id=736 which have some additional information.


Add a comment

Show form to leave a comment

Comments (newest first)

Alex from Russia wrote on May 18th, 2016:

Thanks for very useful article.