Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WIN2k Blat

Status
Not open for further replies.

MAJBlaine

IS-IT--Management
May 20, 2002
34
0
0
US
I've a problem with my NNM (6.2) win2K server passing variables incorrectly.

When an event occurs, I should be getting an IP address, device names, etc passed to my email and pager, but instead I'm get $2, $3, etc...

I'm using Blat to pass the information to the mail server (First Class), which is getting there, its just that my variables are not resolving.

Advice?
 
Thanks Nigel.

Someone else set this up, so I'm having to reverse engineer it. He was using a command which I still do not understand how he got it to work:
blat c:\scripts\node_down -t <email adddr> &quot;$2&quot;

In this case node_down is a renamed version of email_alert.pl. What the -t switch does, I never did figure out.

My fix:
I took the quotes off the $2 and reconfigured it as such:
perl c:\scripts\node_down.pl $2 $3 $5 <email addr>

Blaine



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top