Community discussions

MikroTik App
 
rcwmoab
just joined
Topic Author
Posts: 16
Joined: Tue Jun 22, 2010 4:03 am
Location: Utah

Net-SNMP integration

Tue Jul 27, 2010 1:35 am

Im trying to call on net snmp from within the dude so I can write snmp values from within the dude. The tool I have created looks like this
snmpset -v 1 -c [Device.CustomField1] 10.240.1.15 1.3.6.1.4.1.32050.2.1.26.5.0 i 0
however when I execute the tool from the dude it does nothing. I have tried replacing device.customfield1 with the real community name but it did not help. I know this is the right cli command because i can execute the same command from the command prompt and it works perfectly. Any help would be much appreciated. I tried to fallow this guide http://mum.mikrotik.com/presentations/C ... d-SNMP.pdf but it is fairly vague
 
User avatar
gsandul
Member Candidate
Member Candidate
Posts: 154
Joined: Mon Oct 19, 2009 1:42 pm

Re: Net-SNMP integration

Tue Jul 27, 2010 11:00 am

Hello,
When create a custom tool you should specify the correct path to executable
The Dude did not find snmpset and do nothing. The solution for windows and default net-snmp installation should be
C:\usr\bin\snmpset.exe -v 1 -c [Device.CustomField1] 10.240.1.15 1.3.6.1.4.1.32050.2.1.26.5.0 i 0
 
rcwmoab
just joined
Topic Author
Posts: 16
Joined: Tue Jun 22, 2010 4:03 am
Location: Utah

Re: Net-SNMP integration

Fri Jul 30, 2010 12:16 am

Thanks a bunch for pointing that out for me, I would have been lost otherwise and it works great
 
lebowski
Forum Guru
Forum Guru
Posts: 1619
Joined: Wed Aug 27, 2008 5:17 pm

Re: Net-SNMP integration

Fri Jul 30, 2010 5:05 pm

Awesome so now you can change stuff with snmp write? Have you done a reboot through your tool yet?

Which program did you wind up with, or where did you down load it from?
 
User avatar
gsandul
Member Candidate
Member Candidate
Posts: 154
Joined: Mon Oct 19, 2009 1:42 pm

Re: Net-SNMP integration

Fri Jul 30, 2010 5:15 pm

Which program did you wind up with, or where did you down load it from?
We are talking about this
http://net-snmp.sourceforge.net/

This tool is used on Linux or other Unix servers as a default SNMP tool (command line tools), SNMP agent, SNMP trap receiver.
It is also ported on Windows. It's more powerful that a standart windows snmp service.