Execute script through windows

This is a discussion on Execute script through windows within the SNMP Users forums, part of the Networking and Network Related category; --===============0296851206== Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <!DOCTYPE html PUBLIC "-//W3C//DTD ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-07-2008
Murilo Fujita
 
Posts: n/a
Default Execute script through windows

--===============0296851206==
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
&nbsp;&nbsp;&nbsp; Hi, again!<br>
&nbsp;&nbsp;&nbsp; I don&acute;t know if I explained correctly my problem.<br>
&nbsp;&nbsp;&nbsp; In Linux SO, I just write the line<br>
<br>
extend .1.3.6.1.4.1.30778.1 shelltest /bin/sh /home/murilo/script1.sh<br>
<br>
&nbsp;&nbsp;&nbsp; and it works!<br>
&nbsp;&nbsp;&nbsp; I installed cygwin imagining obey the same rules of Linux. However,
then I entry the comand<br>
<br>
$ snmpwalk.exe -v 1 -c myCommunity fujita:myPort 1.3.6.1.4.1.30778.1<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; the answer is<br>
<br>
End of MIB<br>
<br>
&nbsp;&nbsp;&nbsp; I restarted the snmp Microsoft services when I modified the
snmpd.conf file and the answer is the same.<br>
&nbsp;&nbsp;&nbsp; Please help me. Thank you very much.<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; Fujita<br>
<br>
<small>Murilo Fujita<br>
Engineer of Automation<br>
Universidade Federal de Itajuba</small><br>
<br>
<br>
<i>On 5/06/2008, Fujita wrote:</i><br>
<br>
&nbsp;&nbsp;&nbsp; Hi,<br>
<br>
&nbsp;&nbsp;&nbsp; In snmpd.conf (man page) there is a instruction for execute a
script (see next line):<br>
<br>
exec .1.3.6.1.4.1.2021.50 shelltest /bin/sh /tmp/shtest<br>
<br>
&nbsp;&nbsp;&nbsp; but /bin/sh belongs to linux. What is the instructions for windows?
<br>
&nbsp;&nbsp;&nbsp; Thanks!<br>
<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp; Fujita<br>
<br>
</body>
</html>


--===============0296851206==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757...un.com/javaone
--===============0296851206==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

--===============0296851206==--
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:15 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0