SNMP: snmp4j / snmpwalk result is different

I am sending requests for snmp nodesusing this example :

PDU pdu = new PDU();
pdu.add(new VariableBinding(new OID("1.3.6.1.2.1.1.1")));
pdu.add(new VariableBinding(new OID("1.3.6.1.2.1.1.9.1.2.1")));
pdu.setType(PDU.GETNEXT);

and results:

Linux pia 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686
1.3.6.1.6.3.11.3.1.1

using a listener:

Received response PDU is: RESPONSE[requestID=307256023, errorStatus=Success(0), errorIndex=0, VBS[1.3.6.1.2.1.1.9.1.2.2 = 1.3.6.1.6.3.11.3.1.1]]
Teams

and snmpwalkgive me the following results:

root@pia:~/workspace_c/SNMP# snmpwalk -v2c -c public localhost 1.3.6.1.2.1.1.1
SNMPv2-MIB::sysDescr.0 = STRING: Linux pia 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686

root@pia:~/workspace_c/SNMP# snmpwalk -v2c -c public localhost 1.3.6.1.2.1.1.9.1.2.1
SNMPv2-MIB::sysORID.1 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance

Why snmpwalkreturns SNMP-FRAMEWORK-MIB::snmpFrameworkMIBComplianceand snmp4j 1.3.6.1.6.3.11.3.1.1?

Why do I have the name node in the first case and the number of node in the second ???

UPDATE: Yeah, it seems that the nodes can be OID, STRING, Timesticks object:

  • 1.3.6.1.2.1.1.9.1.2.1 => OID : SNMP-FRAMEWORK-MIB :: snmpFrameworkMIBCompliance
  • 1.3.6.1.2.1.1.9.1.3.1 => STRING : SNMP management architecture architecture.
+3
source share
2 answers

? (SNMP OID " " - , ​​ ).

MIBExplorer:

snmpMPDCOMpliance -         STATUS current                          " SNMP,                  SNMP-MPD-MIB.                 "

    MODULE 
    MANDATORY-GROUPS {
                    snmpMPDGroup }

- 1.3.6.1.6.3.11.3.1.1 -:: = {snmpMPDMIBCompliances 1}

+3

MIB . SMI , MIB MIB IETF.

(, "1.3.6.1.4.1" ), . SNMP4J MIB , , OID .

, , MIB, SNMP4J-SMI , , .

0

All Articles