registration table and snmp

I am trying to build a system that will go through all my MTs, select the ones with wireless interfaces (which I can do by looking for ieee80211 interfaces in .1.3.6.1.2.1.2.2.1.3), then start graphing signal strength levels. On stations (is there a way to determine if it’s a station or AP/bridge?), the .1.3.6.1.4.1.14988.1.1.1.1.1.4.interfacenumber works fine, but doesn’t seem to work on AP/bridge, so I must use the reg table.

What does the last two fields in the oid refer to (211.8) here?
It seems to be different on every router.

interface wireless registration-table> print oid 
 0 strength=.1.3.6.1.4.1.14988.1.1.1.2.1.3.0.21.109.16.6.211.8 
   tx-bytes=.1.3.6.1.4.1.14988.1.1.1.2.1.4.0.21.109.16.6.211.8

on another router:

interface wireless registration-table> print oid
 0 strength=.1.3.6.1.4.1.14988.1.1.1.2.1.3.0.21.109.16.62.20.2 
   tx-bytes=.1.3.6.1.4.1.14988.1.1.1.2.1.4.0.21.109.16.62.20.2

On a ptp link, I can get the signal leve for instance by dropping off all the stuff that varies between registration table oids on different MTs regardless of that random number. I don’t have an ptmp setups to see how that would work.

jp@mocha:~> snmpwalk -v1 -Oqn -cpublic 10.0.13.9 \ .1.3.6.1.4.1.14988.1.1.1.2.1.3
.1.3.6.1.4.1.14988.1.1.1.2.1.3.0.21.109.16.62.20.2 -80 
jp@mocha:~> snmpwalk -v1 -Oqn -cpublic 10.0.13.9 \ .1.3.6.1.4.1.14988.1.1.1.2.1  
.1.3.6.1.4.1.14988.1.1.1.2.1.3.0.21.109.16.62.20.2 -81
.1.3.6.1.4.1.14988.1.1.1.2.1.4.0.21.109.16.62.20.2 1102056692
.1.3.6.1.4.1.14988.1.1.1.2.1.5.0.21.109.16.62.20.2 2176753064
.1.3.6.1.4.1.14988.1.1.1.2.1.6.0.21.109.16.62.20.2 85009428
.1.3.6.1.4.1.14988.1.1.1.2.1.7.0.21.109.16.62.20.2 100169111
.1.3.6.1.4.1.14988.1.1.1.2.1.8.0.21.109.16.62.20.2 24000000
.1.3.6.1.4.1.14988.1.1.1.2.1.9.0.21.109.16.62.20.2 18000000

The last numbers in the OID are the MAC address (in decimal) of the wireless client (except the very last number). For example:

strength=.1.3.6.1.4.1.14988.1.1.1.2.1.3**.0.21.109.16.6.211**.8

So, the MAC of that client is 00:15:6D:10:06:D3 (An SR2/SR5 perhaps?)

I don’t recall what the very last number means…a brief lookup on one of my APs show that they all end with .5 instead of your .8. ANyone know what this means?

Okay, I’ve figured out the last number. It’s the number of the interface that the client is registered to. For example, you have the following config:

int pr

0 ether1
1 wlan1
2 wlan2

If wlan1 where an ap-bridge with clients associated to it, the registration table OIDs would all end in .2 (note that this number counts/indexes intefaces, starting at 1 and not zero). This is all based on a network running 2.8.28 so I’m not sure it’s the same in 2.9 but I bet that it is.

Now if only I couls take advantage of this in Cacti and not have to manually add all of these OIDs.

Yes, I overlooked that that last digit was probably the interface number. Thanks.

The mac address in the oid looks correct. thanks for showing that. Now I can use either my nasty bash to convert decimal to hex or a variation of the nice awk command I learned on the beta board here.

$> printf "%X" 109
6D

or

$> echo 109 |awk '{printf "%X", $1}'
6D