Tasan, Try this: - Create a Program Notification: o Program filename=cmd /c yourfile.bat
Joe In reply to 26 Nov message from [EMAIL PROTECTED]: >Hello again, >This for some reason still does not work for me. I created the batch file and >executed >it on the command line >and it works fine. But for some reason when I try to call that batch file from Whats >Up via alerts for a device, it flashes a DOS widow for a fraction of a second then it >disappears (this is the a batch file without any of the exit commands discussed >earlier). The results are not exported to the text file, it is completely empty. I >am >running Win2K Professional, w/o NTFS, any ideas? >Tasan >"Joe Sepielli" <[EMAIL PROTECTED]>@list.ipswitch.com on 11/26/2001 09:26:59 AM >Please respond to [EMAIL PROTECTED] >Sent by: [EMAIL PROTECTED] >To: <[EMAIL PROTECTED]> >cc: >Subject: RE: [WhatsUp Forum] Screen saver info >Robert, >You found the flaw in my original solution. The down devices are passed to cmd as a >space separated list of devices. Each would be picked up as %1 %2 ... >The following will write the entire command line to the output file. >- Create a a bat file containing this command: > echo %CMDCMDLINE%>test.out >- Create a Program Notification: > o Program filename=yourfile.bat > o Program arguments= %d %t Down Devices: %e Devices with down services: %A >- Create a Recurring Notification that calls yourfile.bat. Sample Output: >CMD /C "C:\Program Files\WhatsUp\test.bat" 11/26/2001 12:13:00 Down Devices: host1.com >host2.com Devices with down services: host3 host5 >Note: This method will write the entire command line to the output file. You will need >to parse the output file to strip out the following: CMD /C "C:\Program >Files\WhatsUp\test.bat" >Joe >In reply to 26 Nov message from [EMAIL PROTECTED]: >>I am looking into doing something similar, but instead of a screen saver, >I am only >>going to update a system status marquee on a website. But when I try the >basic batch >>file mentioned in the this chain, I just get one device down, and one >device with a >>service down, I have intentionally made multiple devices be is a down >state for the >>test. Also, the device listed as 'service down' is not monitoring any >services, just >>ping response. Any ideas? bellow is the exact batch file I am using, any >help or hint >>would be greatly appreciated. Could you send me the contents of the file >you are >>using? >>Thanks, >>RPW >>: Batch file : >>echo WhatsUp Gold Status at %1 ... Down Devices: %2, Devices with down >services >>%3>cur_stat.txt >>: output from execution by WhatsUp : >>WhatsUp Gold Status at 09:17:00 ... Down Devices: 10.15.5.51, Devices >with down >>services 10.15.8.51 >>: In this test run, both IPs are printers, neither have services being >monitored, just >>IP pings. >> \\\/// >> / _ _ \ >> (| (.)(.) |) >> +------------------.OOOo--()--oOOO.--------------------+ >> |Robert P. Walters (316) 681-5130 Direct Ext. | >> |Systems Manager (316) 579-2219 Local Pager | >> |Lodgeworks (316) 681-5118 Main Fax | >> |8100 E. 22nd St. N. (888) 493-0762 Natnl Pager | >> |Bldg. 500 Internet Email Address | >> |Wichita, KS 67226 [EMAIL PROTECTED] | >> +--------------------.oooO-----------------------------+ >> ( ) Oooo. >> \ ( ( ) >> \_) ) / >> (_/ >>-----Original Message----- >>From: Rod Carty [mailto:[EMAIL PROTECTED]] >>Sent: Tuesday, November 20, 2001 1:03 PM >>To: WhatsUp forum >>Subject: [WhatsUp Forum] Screen saver info >>I'm thinking about building a screen saver for one of my customers that >displays simple >>scrolling marquee-style text and changes color according to WUG's status. >I've looked >>around for an existing screen saver that could accept some real-time input >like this >>and found nothing so it looks like I'm building it. I looked through the >registry for >>WUG, looking for some item there that should indicate current status >similar to the WUG >>taskbar icon - green, yellow or red - but didn't find anything. Does >someone know of a >>way for me to hook into WUG realtime? >>-- >>Rod C-- >>Enterprise Network Consulting >>Whitehorse, Yukon >>http://www.enc.yk.net/ >>http://www.geocities.com/rodcarty/ >>>> Error: keyboard locked - try anything you can think of. << >>The preceding humor inserted by QuipSig >>http://www.enc.yk.net/quipsig/ >>4,000 quip repertory! >>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/ >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/
