Community discussions

MikroTik App
 
AiroSam
newbie
Topic Author
Posts: 31
Joined: Mon Jan 30, 2012 7:48 pm
Location: Oklahoma, USA

SNMP Walk works, but Get does not

Thu May 05, 2022 7:27 pm

I am trying to use an RB100AHx4 on 6.47.1 to grab a Mimosa B11 radio's signal strength with snmp-get.

The Walk command works successfully:
/tool snmp-walk address=10.10.10.10 community=public
OID                                                                     TYPE             VALUE                                                                    
1.2.840.10036.1.1.1.1.4                                                 octet-string      \B5\C6\10\t$                                                            
1.2.840.10036.1.1.1.1.9                                                 octet-string      \B5\C6\10\t"                                                            
1.2.840.10036.1.1.1.1.10                                                octet-string     \00\02\03\04\05\06                                                       
1.2.840.10036.1.1.1.2.4                                                 integer          100                                                                      
1.2.840.10036.1.1.1.2.9                                                 integer          100                                                                      
1.2.840.10036.1.1.1.2.10                                                integer          100                                                                      
1.2.840.10036.1.1.1.3.4                                                 integer          1                                                                        
1.2.840.10036.1.1.1.3.9                                                 integer          1                                                                        

But the Get command does not:
/tool snmp-get address=10.10.10.10 oid=1.3.6.1.4.1.43356.2.1.2.6.6.0 community=public
error - contact MikroTik support and send a supout file (3)
 
AiroSam
newbie
Topic Author
Posts: 31
Joined: Mon Jan 30, 2012 7:48 pm
Location: Oklahoma, USA

Re: SNMP Walk works, but Get does not

Thu May 05, 2022 9:09 pm

I found a workaround using snmp-walk:
:do {
:execute script={/tool snmp-walk 10.10.10.10 oid=1.3.6.1.4.1.43356.2.1.2.6.6 community=public} file=oid_data.txt
/delay 5
:local output [/file get oid_data.txt contents]
:local signal [/put [:pick $output 129 133]]
}
/code]
 
User avatar
chechito
Forum Guru
Forum Guru
Posts: 2989
Joined: Sun Aug 24, 2014 3:14 am
Location: Bogota Colombia
Contact:

Re: SNMP Walk works, but Get does not

Thu May 05, 2022 9:10 pm

nice, thank you for sharing
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3279
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: SNMP Walk works, but Get does not

Fri May 06, 2022 8:26 am

Can you post the output of with oid of the line giving correct result?

Who is online

Users browsing this forum: Sailwebwifi and 62 guests