×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Using Blat in TND 3.0 msg action

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.

RE: Using Blat in TND 3.0 msg action

Hi

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

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

RE: Using Blat in TND 3.0 msg action

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
www.sonda.com.uy
americo.alonso@sonda.com.uy

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close