Welcome to Questions - Ask OpenNMS, where you can ask questions and receive answers from other members of the community.

Extend use of the snmp-hardware-inventory-adapter-configuration

0 votes
451 views

Hello,

I'm trying to extend the use of the snmp-hardware-inventory-adapter-configuration.xml

Wiki: http://www.opennms.org/wiki/Hardware_Inventory_Entity_MIB

The standard Cisco part works. Also a piece of the added Juniper.

For a HP Proliant server I get: The node <servername> doesn't have hardware information on the database.

I added to /etc/opennms/snmp-hardware-inventory-adapter-configuration.xml :

  <hw-extension name="CPQSINFO-MIB" sysOidMask=".1.3.6.1.4.1.232.">
    <mibObj oid=".1.3.6.1.2.1.1.5.0"         type="string" alias="Hostname" />
    <mibObj oid=".1.3.6.1.2.1.1.5.0"         type="string" alias="Asset"/>
    <mibObj oid=".1.3.6.1.4.1.232.2.2.2.5.0" type="string" alias="vendorassetNumber"/>
    <mibObj oid=".1.3.6.1.4.1.232.2.2.4.2.0" instance="cpqSiProductName" type="string" alias="cpqSiProductName" replace="entPhysicalDescr" />
  </hw-extension>

  <hw-extension name="MSFT-MIB" sysOidMask=".1.3.6.1.4.1.311.">
    <mibObj oid=".1.3.6.1.2.1.1.5.0"         type="string" alias="Hostname"/>
    <mibObj oid=".1.3.6.1.2.1.1.5.0"         type="string" alias="Asset"/>
    <mibObj oid=".1.3.6.1.4.1.232.2.2.2.5.0" type="string" alias="vendorassetNumber"/>
    <mibObj oid=".1.3.6.1.4.1.232.2.2.4.2.0" instance="cpqSiProductName" type="string" alias="cpqSiProductName" replace="entPhysicalDescr" />
  </hw-extension>

 

snmpwalk -One -v 2c -c public 192.168.x.x .1.3.6.1.4.1.232.2.2.4.2.0
.1.3.6.1.4.1.232.2.2.4.2.0 = STRING: "ProLiant DL360 G5"

snmpwalk -One -v2c -c public 192.168.x.x cpqSiProductName
.1.3.6.1.4.1.232.2.2.4.2.0 = STRING: "ProLiant DL360 G5"

 

Do you know the right hw-extension name entries for HP servers for collection Hardware-info?
What do I missing ?
Where is the hardware info stored?

How can I test/start the snmp-hardware function from the commandline, instead of restarting OpenNMS?

Little bit similar (that's where I got the Juniper part) :

http://opennms.530661.n2.nabble.com/Snmp-Hardware-data-collection-does-not-retrieve-the-subtree-td7592430.html#a7592477

Kind regards,

Fred

 

OpenNMS version
16.0.3
Java version
1.8.0_45 (Oracle Corporation
Operating system
Ubuntu 14.04.1
PostgreSQL version
9.3.5
asked Sep 21, 2015 by FredE (210 points)

Please log in or register to answer this question.

...