This is a discussion on Re: Script error after use *.bat file - SNMP ; Thanks to Fernández Piñas and Richard Horton for this valuable information. My system don´t crash know. By the way, any suggestion how snmp change the output.bat? The case is: in the NMS is running Linux. An user type a value ...
Thanks to Fernández Piñas and Richard Horton for this valuable
My system don´t crash know.
By the way, any suggestion how snmp change the output.bat?
The case is: in the NMS is running Linux. An user type a value to
control the voltage (between 0 and 5V) and the agent will run the
output.exe (again, it works with this syntax: C:\> output.exe
To join the name of program and the value I created output.bat in
What can I do to SNMP modify the output.bat in the agent inserting
the value typed in the NMS?
The last help was very useful. If you can help again, I will be
Fernández Piñas escreveu:
> Use "cmd /c" instead of "/bin/sh"
> -----Mensaje original-----
> De: Richard Horton [mailto:firstname.lastname@example.org]
> Enviado el: miércoles, 22 de octubre de 2008 14:29
> Para: Murilo Fujita; email@example.com
> Asunto: Re: Script error after use *.bat file
> 2008/10/22 Murilo Fujita
>> I want to report the following fact:
>> I added in snmpd.conf file this line:
>> extend .220.127.116.11.4.1.30778.14 /bin/sh "output.bat"
>> I might be barking up the wrong tree but:-
> 1. The OS you are running the output command on is Windows, 2. The OS youare running the agent on is Windows, 3. The OS you are running the walk from is Windows.
> /bin/sh is a unix style command for launching the sh shell (just as /bin/bash launches the bash shell).
> For windows you'll need something like c:\windows\command.com -c
> (I think it is -c to run the specified command and exit - you'll need to look at windows box as I don't have one to hand)
> Richard Horton
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
Net-snmp-users mailing list
Please see the following page to unsubscribe or change other options: