I have got the OID by this command: interface wireless registration-table print oid where mac-address =00:0E:8E:1E:B0:50.
The result is the OID: .1.3.6.1.4.1.14988.1.1.1.2.1.3.0.14.142.30.176.80.23
I see here 3 part of this OID:
first is a localization part: .1.3.6.1.4.1.14988.1.1.1.2.1.3.
second is the mac addres part:0.14.142.30.176.80.
the last is a some number: 23
So the first part is a static part second part is easy to calculate by converting from HEX to DEC, but the last part is something like control sum or something else. How to calculate that last part of this OID?
samson:~# snmpget -c configure -v 1 192.168.0.19 1.3.6.1.4.1.14988.1.1.1.2.1.3.0.14.142.30.176.80
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3.0.14.142.30.176.80
Strange snmpwalk is working correctly but snmpget is not working correctly…
that’s not strange. it’s as it should be: snmpwalk walks through the whole subtree of a given OID. and in this case the subtree consists of a single value
That’s the way SNMP works. snmpwalk makes successive snmpget commands and will get a whole tree/subtree like Chupaka said. For snmpget you need to feed it a complete OID for it to work, depending on the server you may need to add a .0 to the end of the OID for it to get what you want.