Page 1 of 1

SNMPGET OIDs

Posted: Mon Aug 27, 2012 6:08 pm
by w14219
Router OS: 5.2
routerboard: yes
model: 433AH
serial-number: 36C102xxxxx
current-firmware: 2.39
upgrade-firmware: 2.41
Workstation: Ubuntu
SNMP: net-snmp

I am trying to query the Mikrotik hardware for the following OIDs and am having trouble getting results actual results:
===overall-ccq===
root@Nagios:/usr/local/nagios/libexec# snmpget -a SHA -A password -X password -v 3 -u username -l authPriv -Oqv 10.2.1.31 .1.3.6.1.4.1.14988.1.1.1.3.1.10.4.0
No Such Instance currently exists at this OID
===noise-floor===
root@Nagios:/usr/local/nagios/libexec# snmpget -a SHA -A password -X password -v 3 -u username -l authPriv -Oqv 10.2.1.31 .1.3.6.1.4.1.14988.1.1.1.3.1.9.4
No Such Instance currently exists at this OID
===band===
root@Nagios:/usr/local/nagios/libexec# snmpget -a SHA -A password -X password -v 3 -u username -l authPriv -Oqv 10.2.1.31 .1.3.6.1.4.1.14988.1.1.1.3.1.8.4
No Such Instance currently exists at this OID
===frequency===
root@Nagios:/usr/local/nagios/libexec# snmpget -a SHA -A password -X password -v 3 -u username -l authPriv -Oqv 10.2.1.31 .1.3.6.1.4.1.14988.1.1.1.1.1.7.4
5200

Any idea why I am getting limited or no results when I query the following OIDs?

[admin@MikroTik] /interface wireless> print oid
0 tx-rate=.1.3.6.1.4.1.14988.1.1.1.1.1.2.4
rx-rate=.1.3.6.1.4.1.14988.1.1.1.1.1.3.4
strength=.1.3.6.1.4.1.14988.1.1.1.1.1.4.4
ssid=.1.3.6.1.4.1.14988.1.1.1.1.1.5.4
bssid=.1.3.6.1.4.1.14988.1.1.1.1.1.6.4
frequency=.1.3.6.1.4.1.14988.1.1.1.1.1.7.4
band=.1.3.6.1.4.1.14988.1.1.1.1.1.8.4
tx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.2.4
rx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.3.4
ssid=.1.3.6.1.4.1.14988.1.1.1.3.1.4.4
bssid=.1.3.6.1.4.1.14988.1.1.1.3.1.5.4
client-count=.1.3.6.1.4.1.14988.1.1.1.3.1.6.4
frequency=.1.3.6.1.4.1.14988.1.1.1.3.1.7.4
band=.1.3.6.1.4.1.14988.1.1.1.3.1.8.4
noise-floor=.1.3.6.1.4.1.14988.1.1.1.3.1.9.4
overall-ccq=.1.3.6.1.4.1.14988.1.1.1.3.1.10.4

Thank you

Re: SNMPGET OIDs

Posted: Wed Sep 05, 2012 4:29 pm
by dada
Router OS: 5.2
routerboard: yes
model: 433AH
serial-number: 36C102xxxxx
current-firmware: 2.39
upgrade-firmware: 2.41
Workstation: Ubuntu
SNMP: net-snmp

I am trying to query the Mikrotik hardware for the following OIDs and am having trouble getting results actual results:
===overall-ccq===
root@Nagios:/usr/local/nagios/libexec# snmpget -a SHA -A password -X password -v 3 -u username -l authPriv -Oqv 10.2.1.31 .1.3.6.1.4.1.14988.1.1.1.3.1.10.4.0
No Such Instance currently exists at this OID
===noise-floor===
root@Nagios:/usr/local/nagios/libexec# snmpget -a SHA -A password -X password -v 3 -u username -l authPriv -Oqv 10.2.1.31 .1.3.6.1.4.1.14988.1.1.1.3.1.9.4
No Such Instance currently exists at this OID
===band===
root@Nagios:/usr/local/nagios/libexec# snmpget -a SHA -A password -X password -v 3 -u username -l authPriv -Oqv 10.2.1.31 .1.3.6.1.4.1.14988.1.1.1.3.1.8.4
No Such Instance currently exists at this OID
===frequency===
root@Nagios:/usr/local/nagios/libexec# snmpget -a SHA -A password -X password -v 3 -u username -l authPriv -Oqv 10.2.1.31 .1.3.6.1.4.1.14988.1.1.1.1.1.7.4
5200

Any idea why I am getting limited or no results when I query the following OIDs?

[admin@MikroTik] /interface wireless> print oid
0 tx-rate=.1.3.6.1.4.1.14988.1.1.1.1.1.2.4
rx-rate=.1.3.6.1.4.1.14988.1.1.1.1.1.3.4
strength=.1.3.6.1.4.1.14988.1.1.1.1.1.4.4
ssid=.1.3.6.1.4.1.14988.1.1.1.1.1.5.4
bssid=.1.3.6.1.4.1.14988.1.1.1.1.1.6.4
frequency=.1.3.6.1.4.1.14988.1.1.1.1.1.7.4
band=.1.3.6.1.4.1.14988.1.1.1.1.1.8.4
tx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.2.4
rx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.3.4
ssid=.1.3.6.1.4.1.14988.1.1.1.3.1.4.4
bssid=.1.3.6.1.4.1.14988.1.1.1.3.1.5.4
client-count=.1.3.6.1.4.1.14988.1.1.1.3.1.6.4
frequency=.1.3.6.1.4.1.14988.1.1.1.3.1.7.4
band=.1.3.6.1.4.1.14988.1.1.1.3.1.8.4
noise-floor=.1.3.6.1.4.1.14988.1.1.1.3.1.9.4
overall-ccq=.1.3.6.1.4.1.14988.1.1.1.3.1.10.4

Thank you
If you have no problems with SNMP parameters (i.e. you are able to read something else from the box via SNMP) then IMHO:
1) some of the values are available only on client stations
2) some client station types are missing some OIDs too ('station bridge' for example behaves diferently to 'station')


AP is expected to have more clients so it doesn't offer (via SNMP) info related to 'the connection' but you have to list the registration table and find a record for a client. Station mode boxes offers (usually) info related to the conenction (since there could be only one wireless connection) etc.

Btw: Now we are trying to find a way how to easily create graphs on our PtP links. We have graphs of RX signal from client side (but no graph for opposite direction because it is not easily accessible from the box). We are using EoIP tunnels and the station is in pure 'station' mode. If we change the mode to 'station bridge' so we can avoid the EoIP, then the SNMP RX signal is not accessible via SNMP. I would like to know if there is a easy way to read the TX/RX signal levels from one box via SNMP ...

Re: SNMPGET OIDs

Posted: Wed Oct 09, 2013 2:45 am
by grizly
Don't you need to specify the community string "-c string" with snmpget?
/usr/bin/snmpget -c nagios -t 1 -v 1 mikrotik .1.3.6.1.2.1.2.2.1.7.10
iso.3.6.1.2.1.2.2.1.7.10 = INTEGER: 1

Re: SNMPGET OIDs

Posted: Wed Oct 09, 2013 8:44 am
by dada
Don't you need to specify the community string "-c string" with snmpget?
/usr/bin/snmpget -c nagios -t 1 -v 1 mikrotik .1.3.6.1.2.1.2.2.1.7.10
iso.3.6.1.2.1.2.2.1.7.10 = INTEGER: 1
SNMP version 3 supports another types of authentication - ones which don't make your passwords publicly available in the packets. And as you can see there is -v3 switch used in the snmpget params