How to calculate the OID

HI,

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?

best regards
TopLek

maybe just an identifier? %)

make snmpwalk on .1.3.6.1.4.1.14988.1.1.1.2.1.3.0.14.142.30.176.80 - are there some others numbers, except .23?

samson:~# snmpwalk -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.23
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3.0.14.142.30.176.80.23 = INTEGER: -56

samson:~# snmpwalk -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
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3.0.14.142.30.176.80.23 = INTEGER: -57

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.23
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3.0.14.142.30.176.80.23 = INTEGER: -56

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.

PS - that last piece of the OID is usually the MAC address, thats why its so random looking.

0.14.142.30.176.80.23

00 0E 8E 1E B0 50 17 - is any part of that the MAC for that entry?

He said the MAC is 00:0E:8E:1E:B0:50 - the last octet (23d or 17h) is what he’s wondering about.

This part is a mac: 0.14.142.30.176.80, but the question is how to calculate last part that is 23.

SNMPwalk is solving the problem, thank you!, but the question is still alive :wink:

00 0E 8E 1E B0 50 17 - THIS is not a MAC becouse it contains 7 parts :wink:
00:0E:8E:1E:B0:50 (HEX) = 0.14.142.30.176.80 (DEC)

try to do the following:

:put [/interface wireless registration-table find mac-address=00:0E:8E:1E:B0:50]

Hello,

OK, but this is not answering my question :slight_smile:, I do need to check it throught the snmp connection.

best regards
TopLek

and what do you see?

my guess is that its some type of index internally. it shouldnt change once it’s assigned, unless you change the MAC or the radio name I believe.

toplek,

:put [/interface wireless find]
  • isn’t it 23 (17h)? seems like last number is .id (also SNMP Index) of corresponding wlan interface