how can I know the MAC-addrees or the Number for assined Item with Print oid command
The MAC address of the associated client is part of its corresponding registration-table OID. Let's look at an actual example:
[admin@AP] interface wireless registration-table> print
# INT... RADIO-NAME MAC-ADDRESS AP SIGNAL... TX-RATE UPTIME
0 wlan1 000C420C12B0
00:0C:42:0C:12:B0 no -52dBm... 6Mbps 1d21h14m2s
1 wlan2 000C420C12A8
00:0C:42:0C:12:A8 no -54dBm... 6Mbps 1d21h13m58s
[admin@AP] interface wireless registration-table> print oid
0 strength=
.1.3.6.1.4.1.14988.1.1.1.2.1.3.
0.12.66.12.18.176.
4
[...]
1 strength=
.1.3.6.1.4.1.14988.1.1.1.2.1.3.
0.12.66.12.18.168.
5
The
orange parts go together, just translate the hexadecimal bytes from the MAC address into decimal, so for the above example 0x00=0, 0x0C=12, 0x42=66, 0x0C=12, 0x12=18, 0xB0=176.
The final value, following the six bytes from the MAC address in the OID (marked
green above) is the SNMP interface index of the interface that the client is associated to (so walk the ifTable to find the index if you only know the interface name).
So if you know the clients MAC address and the SNMP index of the AP interface where the client is supposed to be connected to then it is very easy to calculate the OID for the SNMP GET. The
cyan part is static anyway.
--Tom