Page 1 of 1

Net-SNMP integration

Posted: Tue Jul 27, 2010 1:35 am
by rcwmoab
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

Re: Net-SNMP integration

Posted: Tue Jul 27, 2010 11:00 am
by gsandul
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

Re: Net-SNMP integration

Posted: Fri Jul 30, 2010 12:16 am
by rcwmoab
Thanks a bunch for pointing that out for me, I would have been lost otherwise and it works great

Re: Net-SNMP integration

Posted: Fri Jul 30, 2010 5:05 pm
by lebowski
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?

Re: Net-SNMP integration

Posted: Fri Jul 30, 2010 5:15 pm
by gsandul
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.