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!

Using Blat in TND 3.0 msg action

Status
Not open for further replies.

pir2

Technical User
Feb 5, 2002
5
0
0
US
Gentlemen, I've just set up some message actions utilizing Blat for notification. It works but I'm trying to figure
How I can include the node ID and message in the Blat emails being sent. Any insight into this would be apreciated.
 
Hi

For the node Id use the variable &NODEID, for the message text &TEXT.
See also message action's help

Regards
Leandro
 
I just completed setting up Blat for that purpose! :D
Here is what I did...
* set policy
* used the generate text file action with a short message and the macros located below the text box. These macros add the relevent variable names etc.
* I then used the Application action, but instead of running Blat directly I called a batch file. The batch file runs the Blat command and then deletes the text file.

(I delete the text file, as the text action APPENDS only, and I wanted a new file each time)

Hope that helps somewhat
eTnee
 
define msgact
name=(*,110)
action="COMMAND"
attrib="DEFAULT"
color="DEFAULT"
condop=" "
evaluate='Y'
node="TNGSRV"
quiet='Y'
status="ACTIVE"
sim='N'
text="echo Process &8 at &NODEID Crítical > c:\PRO_CRI.log"
define msgact
name=(*,120)
action="COMMAND"
attrib="DEFAULT"
color="DEFAULT"
condop=" "
evaluate='Y'
node="TNGSRV"
quiet='Y'
status="ACTIVE"
sim='N'
text="blat c:\PRO_CRI.log -t admintng@server.com -f Unicenter_Monitor -s ""Process &8 en &NODEID - Crítical"" -q"
define msgact
name=(*,130)
action="COMMAND"
attrib="DEFAULT"
color="DEFAULT"
condop=" "
evaluate='Y'
node="TNGSRV"
quiet='Y'
status="ACTIVE"
sim='N'
text="del c:\PRO_CRI.log"


Américo Alonso
Certified Unicenter Engineer
Sonda Uruguay S.A.
Tel./Fax: +598 2 917-0631
americo.alonso@sonda.com.uy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top