Page1of1

Nstreme2 + SNMP

Posted:Wed Apr 07, 2010 12:05 pm
bylegba
Hi,
我想监视rx-signal-strength / tx-signal-strength and rx-rate/tx-rate on nstreme2 interfaces via SNMP in RouterOS 3.14 .

What OID is responsible for rx/tx signal and rate ?

I can not find anything in
snmpwalk -v2c -c public 10.0.0.22 -m /tmp/MIKROTIK-MIB.txt
or
snmpwalk -v2c -c public 10.0.0.22 enterprises.14988.1 -m /tmp/MIKROTIK-MIB.txt

that looks similar to rx-signal-strength / tx-signal-strength.

Any sugestions ?

--
Best Regards
Dawid "Kuba" Chrzan

Re: Nstreme2 + SNMP

Posted:Tue Apr 13, 2010 12:05 pm
byangboontiong
You may telnet into you routerboard..

Then copy and paste the following command:
snmp community remove 0
snmp community add name=public address=0.0.0.0/0 read-access=yes
snmp set trap-community=public trap-version=2
quit


then you should able to read it via the snmp (from dude), but you may need a little bit time to wait (depend you probe interval).

In normal condition, you will see this..
[admin@Mikrotik] > snmp print
enabled: yes
contact: ""
location: ""
engine-id: ""
engine-boots: 37
time-window: 15
trap-sink: 0.0.0.0
trap-community: public
trap-version: 2

And also...
[admin@Mikrotik] > snmp community print
# NAME ADDRESS SECURITY READ-ACCESS
0 public 0.0.0.0/0 none yes

Re: Nstreme2 + SNMP

Posted:Fri Apr 16, 2010 10:09 pm
bywildbill442
are you saying this will only work when monitoring from the Dude?

I get nothing but null values when querying via snmpwalk and snmpget, even with the above settings.

Re: Nstreme2 + SNMP

Posted:Sat Apr 17, 2010 6:00 pm
byangboontiong
My apologies, there's 1 line shorted.

......................................................................................................
snmp community remove 0
snmp community add name=public address=0.0.0.0/0 read-access=yes
snmp set trap-community=public trap-version=2
snmp set enable=yes
quit
......................................................................................................

Then you can check the snmp setting..

[admin@Mikrotik] > snmp print
enabled: yes
contact: ""
location: ""
engine-id: ""
engine-boots: 35
time-window: 15
trap-sink: 0.0.0.0
trap-community: public
trap-version: 2

And also the...

[admin@Mikrotik] > snmp community print
# NAME ADDRESS SECURITY READ-ACCESS
0 public 0.0.0.0/0 none yes

..........................................................................................................
Once you can see that 2, you can use dude> snmp walk to get the information from you bridge.

Remember 1 thing is, the dude need some time to walk all the mib, it may take you 1~3 minutes.

Re: Nstreme2 + SNMP

Posted:太阳4月18, 2010 8:44 pm
bywildbill442
What I'm saying is, you get nothing but NULL values when querying the OID via snmpwalk or snmpget... I have SNMP enabled and setup correctly because I've been monitoring other OID's on this device. I just found out there's an OID for the NSTREME Dual interface and wanted to monitor that as well...

I use the dude for management, but I'm trying to graph the signal via cacti so being able to do it through the dude doesn't help... And if the OID is not returning a NULL value how is the dude going to report signal values? Unless its doing so through RouterOS, and not SNMP.

Re: Nstreme2 + SNMP

Posted:Wed Apr 21, 2010 12:04 am
bywildbill442
/interface wireless nstreme-dual> pr oid
Flags: X - disabled, R - running
0 R tx-rate=.1.3.6.1.4.1.14988.1.1.10.1.1.2.7
rx-rate=.1.3.6.1.4.1.14988.1.1.10.1.1.3.7
tx-signal-strength=.1.3.6.1.4.1.14988.1.1.10.1.1.4.7
rx-signal-strength=.1.3.6.1.4.1.14988.1.1.10.1.1.5.7
connected=.1.3.6.1.4.1.14988.1.1.10.1.1.6.7

Can't get any values returned for any of the above OID's.....

Re: Nstreme2 + SNMP

Posted:Wed Apr 21, 2010 3:23 pm
byangboontiong
/interface wireless nstreme-dual> pr oid
Flags: X - disabled, R - running
0 R tx-rate=.1.3.6.1.4.1.14988.1.1.10.1.1.2.7
rx-rate=.1.3.6.1.4.1.14988.1.1.10.1.1.3.7
tx-signal-strength=.1.3.6.1.4.1.14988.1.1.10.1.1.4.7
rx-signal-strength=.1.3.6.1.4.1.14988.1.1.10.1.1.5.7
connected=.1.3.6.1.4.1.14988.1.1.10.1.1.6.7

Can't get any values returned for any of the above OID's.....

Then you should email to mikrotik...

Re: Nstreme2 + SNMP

Posted:Wed Apr 21, 2010 5:56 pm
bywildbill442
I did here's their response:
Hello William,

Nstreme OIDs should be fixed in version 4.7, they should provide you with all
necessary information.

Regards,
Sergejs

Re: Nstreme2 + SNMP

Posted:Fri Apr 23, 2010 2:40 am
bywildbill442
And it was.. Thank you Mikrotik for the quick fix!

Re: Nstreme2 + SNMP

Posted:太阳4月25, 2010 4:58 am
bymerlinthemagic
Hey Guys,

Im looking for the signal strength as seen by the client (both sides r52n radios).

Using 4.7 on 433AH i cannot get output from the wireless oids:

[admin@ipaddress] /interface wireless> print oid
0 tx-rate=.1.3.6.1.4.1.14988.1.1.1.1.1.2.12
rx-rate=.1.3.6.1.4.1.14988.1.1.1.1.1.3.12
strength=.1.3.6.1.4.1.14988.1.1.1.1.1.4.12
ssid=.1.3.6.1.4.1.14988.1.1.1.1.1.5.12
bssid=.1.3.6.1.4.1.14988.1.1.1.1.1.6.12
frequency=.1.3.6.1.4.1.14988.1.1.1.1.1.7.12


snmpwalk -t 3 -v1 -On -c public ipaddress .1.3.6.1.4.1.14988.1.1.1.1.1.4.12

return nothing, not timeout but empty result.

Walking oid: ".1.3.6.1.4.1.14988" on the same ip returns the strength (among other things) but with a completely different OID. If i then "Get" on the new OID i get the following:

snmpwalk -t 3 -v1 -On -c public ipaddress .1.3.6.1.4.1.14988.1.1.1.2.1.3.0.12.66.97.0.37.12
truncating unsigned value to 32 bits (2)
.1.3.6.1.4.1.14988.1.1.1.2.1.3.0.12.66.97.0.37.12 = INTEGER: -37

Doing the same on 4.5:

[admin@ipaddress] /interface wireless> print oid
0 tx-rate=.1.3.6.1.4.1.14988.1.1.1.1.1.2.7
rx-rate=.1.3.6.1.4.1.14988.1.1.1.1.1.3.7
strength=.1.3.6.1.4.1.14988.1.1.1.1.1.4.7
ssid=.1.3.6.1.4.1.14988.1.1.1.1.1.5.7
bssid=.1.3.6.1.4.1.14988.1.1.1.1.1.6.7
frequency=.1.3.6.1.4.1.14988.1.1.1.1.1.7.7

snmpwalk -t 3 -v1 -On -c public ipaddress .1.3.6.1.4.1.14988.1.1.1.1.1.4.7

Returns:

.1.3.6.1.4.1.14988.1.1.1.1.1.4.7 = INTEGER: -37

What changed? and is it broken or am i doing this wrong? ANd would it be possible to have ros set oids per interface so they do not vary from installation to installation. Just base it on the different interface numbers for the different interface types, i.e.

/interface wireless> print oid
0 tx-rate=.1.3.6.1.4.1.14988.1.1.1.1.1.2.0
rx-rate=.1.3.6.1.4.1.14988.1.1.1.1.1.3.0
strength=.1.3.6.1.4.1.14988.1.1.1.1.1.4.0
ssid=.1.3.6.1.4.1.14988.1.1.1.1.1.5.0
bssid=.1.3.6.1.4.1.14988.1.1.1.1.1.6.0
frequency=.1.3.6.1.4.1.14988.1.1.1.1.1.7.0

1 tx-rate=.1.3.6.1.4.1.14988.1.1.1.1.1.2.1
rx-rate=.1.3.6.1.4.1.14988.1.1.1.1.1.3.1
strength=.1.3.6.1.4.1.14988.1.1.1.1.1.4.1
ssid=.1.3.6.1.4.1.14988.1.1.1.1.1.5.1
bssid=.1.3.6.1.4.1.14988.1.1.1.1.1.6.1
frequency=.1.3.6.1.4.1.14988.1.1.1.1.1.7.1

2 tx-rate = .1.3.6.1.4.1.14988.1.1.1.1.1.2.2
rx-rate=.1.3.6.1.4.1.14988.1.1.1.1.1.3.2
strength=.1.3.6.1.4.1.14988.1.1.1.1.1.4.2
ssid=.1.3.6.1.4.1.14988.1.1.1.1.1.5.2
bssid=.1.3.6.1.4.1.14988.1.1.1.1.1.6.2
frequency=.1.3.6.1.4.1.14988.1.1.1.1.1.7.2

And then do the same for Nstreme2 and all the other interface types that already have their own submenu.

Then i can write a standard script that can get graph information from all wireless stats without specifying oids per routerboard/interface.

Regards,

Martin Madsen
Bel Air Internet