Paul,
    I have not tried using PERL with WUG, but I would expect it to work. Yes, you can pass the % variable to the external program. When using VBScript, I specify the following in the Program Notification:
 
   C:\WINNT\system32\cscript.exe - as the Program filename (VBScript engine)
 
    C:\Program Files\WhatsUp - as the Working path (this is where my VBScripts are stored)
 
    "C:\Program Files\WhatsUp\NetworkMail.vbs" "%t" "%d" "%u" "%S" "%T" "%n" "%v" "%(services::justup)" "%C" "%a" "%m" - as the Program Arguments. I used the " mark as a delimiter, that way if there is a null value for one of the % variable you still get a place holder when that arguments are passed. The " delimiter can be a problem if the variable has a " in the data. 
 
    Hope this helps.

Norm Segner
SEI INVESTMENTS | One Freedom Valley Drive | Oaks, PA 19456
Tel: 610-676-2543
| Fax: 484-676-2543
Email: [EMAIL PROTECTED]

"There are 10 kinds of people in the world: Those who understand binary, and those who don't."

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Jasa
Sent: Wednesday, December 17, 2003 1:38 AM
To: [EMAIL PROTECTED]
Subject: RE: [WhatsUp Forum] Adding traceroute output to Alert Emails

Thank you, Norm.   I'll lookup vbscripting, and see how it's done.  I know how to do this on perl and expect, hopefully vbscripting will be intuitively related.    Would you happen to know whether it's possible to install perl on a WU gold server and use any perl mail-module successfully?    Can  the WU variables (the %a %L10  etc) be passed to other (external) programs?    Thanks for the awesome help!
pj
 


======================================
Paul Jasa
Network Engineer
Univision Communications, Inc.
 305-470-8072 DNOC
 305-992-6220 Mobile
 305-471-1539 Desk
 305-640-3589 Fax
======================================

-----Original Message-----
From: Segner, Norm [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 12:34 PM
To: [EMAIL PROTECTED]
Subject: RE: [WhatsUp Forum] Adding traceroute output to Alert Emails

Paul,
    It should be possible if you use a program (i.e. VBScript) instead of the basic WU SMTP message. I use VBScript programs for all of my alert processing. I get more control over the message content plus I can do message suppression.
    You should be able to issue a tracert command from the VBScript program and pipe the output to a file. After the tracert has completed, you can read the file into the program and include the information in a formatted email.
    Let me know if you need an example of the VBScript.
 

Norm Segner
SEI INVESTMENTS | One Freedom Valley Drive | Oaks, PA 19456

"There are 10 kinds of people in the world: Those who understand binary, and those who don't."

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Jasa
Sent: Wednesday, December 03, 2003 11:58 AM
To: [EMAIL PROTECTED]
Subject: [WhatsUp Forum] Adding traceroute output to Alert Emails

Hi folks!  I was curious if anyone had tried to add output from other scripts onto the Alert Emails.   We'd like to be able to execute a traceroute when a device is down (to troubleshoot routing issues), and have the output be pasted onto the Alert Email that WU sends out.   I'm running WUG 8. Has anyone had any success in doing this?  How can I go about it?  is it possible?    Thanks so much for pointing me in the right direction.  
Paul

======================================
Paul Jasa
Network Engineer
======================================
 

The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your syste

The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system.

Reply via email to