Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.9.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

I want to know how to specify OID string value.

Server Linux / Unix 2.9

Unix Agent 2.8

I want to know how to specify OID string value.

Example, how to get MAC address. I think oid is 1.3.6.1.2.1.2.2.1.6. What is OID string value?

 

in Administrative console by (120 points)

1 Answer

0 votes

Hello,

When creating a SNMP Type within the snmp data model the OID string value must match the exact value of your device OID in order to identify the type of device. If i'm correct your OID  (1.3.6.1.2.1.2.2.1.6) is the PhysicalAdress of your device so it should be your device's MAC Address.

The problem i've found using the SNMP Data Model is that most of the time the OIDs string value are unique therefore i've modified the SnmpScan module not to check for the exact string but to identify if the OID string value configured on the server is contained in the string value returned by the device.

For example for linux targeted devices,  i've configured these values :

  • OID = 1.3.6.1.2.1.1.1.0 (SNMPv2-MIB::sysDescr)
  • OID String Value = "Linux"

The device returns the string "Linux <hostname> 2.6.18-308.el5PAE #1 SMP Tue Feb 21 20:46:05 EST 2012 i686"

Since the returned string contains my conditional OID String Value ("Linux") the device is identified as a Linux machine.

by (800 points)
 
Powered by Question2Answer
...