Unfortunately it looks like the %u does not function for program
notifications.  

This should be made available for future versions of Whatsup.  Program
notifications should have access to the full range of variables.  Why they
are limited to just a few I don't know.

Gene Forfar
Advanced Technology Services
Erisco
Phone 908.994.3376 
Fax 908.994.4376 



-----Original Message-----
From: Joe Sepielli [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 4:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [WhatsUp Forum] Program Notifications


Gene,

You can pass the device status via the %u variable.  Your script can test
the arg
for UP or Down and then conditionally perform the appropiate action.
echo off
%u      Can result in the word "UP", "DOWN", "TRAP", "SVCUP", or "SVCDOWN"

Test.bat
echo off
IF "%1" == "UP" upscript
IF "%1" == "DOWN" downscript

Joe

In reply to 31 May message from [EMAIL PROTECTED]:

>This message is in MIME format. Since your mail reader does not understand
this format, some or all
>of this message may not be legible. 

>------_=_NextPart_001_01C0EA02.9017B1C0
>Content-Type: text/plain;
> charset="iso-8859-1"

>Is there a way to get a program notification to run two different scripts
based on whether a device
>is up or down?
> 
>Thanks,
> 

>Gene Forfar 
>Advanced Technology Services 
>Erisco 
>Phone 908.994.3376 
>Fax 908.994.4376 


>------_=_NextPart_001_01C0EA02.9017B1C0
>Content-Type: text/html;
> charset="iso-8859-1"

><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD>
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>

><META content="MSHTML 5.00.3315.2870" name=GENERATOR></HEAD> <BODY>
><DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=644214818-31052001>Is there a way to get a
>program notification to run two different scripts based on whether a device
is up or
>down?</SPAN></FONT></DIV> <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
>class=644214818-31052001></SPAN></FONT>&nbsp;</DIV> <DIV><FONT
color=#0000ff face=Arial size=2><SPAN
>
>class=644214818-31052001>Thanks,</SPAN></FONT></DIV> <DIV>&nbsp;</DIV>
><P><FONT face="Comic Sans MS">Gene Forfar</FONT> <BR><FONT face="Comic Sans
MS">Advanced Technology
>Services</FONT> <BR><FONT face="Comic Sans MS">Erisco</FONT> <BR><FONT
face="Comic Sans MS">Phone 
>908.994.3376 </FONT><BR><FONT face="Comic Sans MS">Fax 908.994.4376
</FONT></P></BODY></HTML>

>------_=_NextPart_001_01C0EA02.9017B1C0--

>Please visit http://www.ipswitch.com/support/mailing-lists.html to be
removed from this list.

>An Archive of this list is available at:
>http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/ 



Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/

Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/

Reply via email to