Does anyone know how to parse output?


Question/Problem: How do I export WhatsUp Gold status information for use
with another application?
Answer/Solution: Here is a simple method to write WhatsUp Gold status
information to a file.
- Create a batch file containing this command:
echo %CMDCMDLINE%>test.out
- Create a Program Notification:
Program filename=cmd /c yourfile.bat (WhatsUp Gold 4.x-6.x)
or
Program filename=yourfile.bat (WhatsUp Gold 7.0)
Program arguments= %d %t Down Devices: %e Devices with down services: %A
- Create a Recurring Notification that calls yourfile.bat.
This example uses the following notification variables:
(see the help file for full details)
%A Names of devices with down services All Notifications
%e Down Host Display Names All Notifications
%t Current time (hh:mm:ss) All Notifications
%d Date format is (mm/dd/yyyy) All Notifications
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" 




Kevin Bartholomew
Computer Operations Analyst 2
Freightliner Corporate
503-745-5324
[EMAIL PROTECTED]




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