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]]
Teamsand snmpwalkgive me the following results:
root@pia:~/workspace_c/SNMP
SNMPv2-MIB::sysDescr.0 = STRING: Linux pia 2.6.26-2-686
root@pia:~/workspace_c/SNMP
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.
source
share