But if you are using a Program notification this will not work. I think this is what you are doing because you said you use psexec. I have included a message that was on this list a while ago. It shows how to have a batch file do different things based on UP or DOWN. You will have to play with it, but if you use psexec you are use to that.
Jeff Cook Network Administrator Whatcom Educational Credit Union It has to run the same batch file for both DOWN and UP, just inside the batch file have it look for the value of the status (either DOWN or UP) and on DOWN run what you want in the first batch file and on UP run what you want in the second batch file. This batch file allows sending WUG alerts to an AttentionSoftware server called Attention. Heres a sample of what I mean: @echo off rem The variables below are as follows: rem %u %T %h %S %v rem UP/DOWN Host_Type Host_Name Status Services rem The following two lines send set and clear rem Arguments are: AID |MType |HName |Con|Cause|Server|Land|Ipaddr rem Arguments are: from|host_type|Host_Name|null|1|netmgmt|Status|UP/DOWN IF .%1==.DOWN attn -tS " |%2|%3|null|1|netmgmt|""%4""|%1" IF .%1==.UP attn -tC " |%2|%3|null|1|netmgmt|""%4""|%1" In this batch file WUG is handing it 5 variables. In WUG alerts specify the batch file and the variables you want to hand it. Then do a test of the status of UP/DOWN which for me I used IF statement on variable 1 which is the UP/DOWN status. Depending on what it is determines what executable and switches I run. Good luck. Phil -----Original Message----- From: Burks, Jon [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 12:53 PM To: [EMAIL PROTECTED] Subject: RE: [WhatsUp Forum] Different sounds/actions for Up/Down Scott, Prior to version 8.01 this used to be an issue. But, I believe with version 8.01 you can configure a sound notification for a specific device being monitored and request a sound to play for device down and a sound to play for device up. >From IPSwitch Release notes - Fixed in Version 8.01 - Notifications - "Sound notification expanded to allow the specification of different sounds depending on the nature of the alert (device up/down, service up/down, or event received). Although I do not actively use this feature since my Whatsup Console is in the raised floor server room (you cannot hear the wav sound over the Liebert HVAC), I did test this feature and it seemed to work just fine. Are you using the same wav file for both the down and up alert? >From the menu... Configure Notification Library... Sound New... Display Name - Test Device Sound Item Down: C:\Program Files\WhatsUp\isdown.wav Item Up: C:\Program Files\WhatsUp\isup.wav Uncheck Continuous Play OK to save Close For the device being monitored Configure the Alerts notification Add Alert Notification Sound - Test Device Sound (just created from procedure above). Send Auto UP alert after sending DOWN alert Send alert even if console response OK to save. When I disconnected the device being monitored from the network by pulling the Ethernet cable. I get the down alert notification with the isdown.wav sound. When I reconnect the device to the network, I get the up alert notification with the isup.wav sound. Is the issue related to the fact that you are sending these remote sounds to systems other than the Whatsup Gold monitoring system? Regards, Jon -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 12:46 PM To: [EMAIL PROTECTED] Subject: [WhatsUp Forum] Different sounds/actions for Up/Down Lets see if I can make this easy to follow..... We are using WUG 8.01 and want to have a sound played remotely on 2 monitoring workstations (both Helpdesk's) when a device state changes. We are using PSEXEC to execute an application called WAV.EXE which plays a wav file on the remote system. This works well. Now, the problem..... How do I get WUG to play a unique sound for when the device goes down and then another when the device comes back up???? I have played with the options in Notifications -> Programs but I can't see where to get it to trigger one for Up and then another for Down. Right now it plays the same wav for both up and down. Any ideas? Scott J. Sotherland 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/
