Using Blat in TND 3.0 msg action
Using Blat in TND 3.0 msg action
(OP)
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.
How I can include the node ID and message in the Blat emails being sent. Any insight into this would be apreciated.
RE: Using Blat in TND 3.0 msg action
For the node Id use the variable &NODEID, for the message text &TEXT.
See also message action's help
Regards
Leandro
RE: Using Blat in TND 3.0 msg action
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
RE: Using Blat in TND 3.0 msg action
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
www.sonda.com.uy
americo.alonso@sonda.com.uy