Finally, I can get standard input in my bat file using "set /P":

        REM HOSTNAME
        set /P hostname=
        cscript //Nologo trapProcessor.vbs %hostname%

Regards,
Fabrice

-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] la part de
FRUCTUS, Fabrice (INFOTEL CONSEIL)
Envoyé : vendredi 16 juin 2006 15:36
À : [email protected]
Objet : RE: Pb with traphandle calling bat file




Thx Thomas,

Do you know a way to pass that standard input to my .bat file ?

Regards,
Fabrice

-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] la part de
Thomas Anders
Envoyé : vendredi 16 juin 2006 15:23
À : [email protected]
Objet : Re: Pb with traphandle calling bat file



FRUCTUS, Fabrice (INFOTEL CONSEIL) wrote:
>> I would like to call a .bat file when receiving a overquota SNMP trap from a 
>> filer.
>> This bat file would then call a VBScript, providing trap information as 
>> arguments
>>
>> I currently receive these SNMP traps, but I can't get the trap information 
>> in my bat file:
[...]
>> But unfortunately, the bat file doesn't get any arguments, and then so as my 
>> vbs file.

The notifications are passed via standard input, not as arguments.


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)


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


This mail has originated outside your organization,
either from an external partner or the Global Internet.
Keep this in mind if you answer this message.


This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.


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



This mail has originated outside your organization,
either from an external partner or the Global Internet.
Keep this in mind if you answer this message.


This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.


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

Reply via email to