Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 8

Execute External program with traps

We are going to be using Orion NPM as our primary trap receiver.  We currently use an older version of What's up gold.  With the current system we have scripts that execute when a trap is received that update a alerting database that we built in house.  To run this we simply fire off the CMD script that runs a perl script that takes the variables and inserts them into the database.  In the Orion Trap alerts what do I need to do to get it to recognize the variables from the trap.


Trap --

 sysUpTime=0.00 seconds



enterprises.954. J01598 ENDED NOTOK!


enterprises.954. .txt



Script --


Variables needed 

The variable enterprises.954. = JobName
The variable enterprises.954. = Abend Code
The variable enterprises.954. = originated from
The variable enterprises.954. Server

Using just one variable I have tried the following and more

 d:\scripts\runscript.cmd "$enterprises.954."
 d:\scripts\runscript.cmd "${enterprises.954.}"
 d:\scripts\runscript.cmd $enterprises.954.
 d:\scripts\runscript.cmd "%enterprises.954."
 d:\scripts\runscript.cmd %enterprises.954.
 Currently the cmd job consists of Only the following line.  It passes the variables to a perl script that does all of the inserting and formatting
 d:\Scripts\ %1 %2 %3 %4 %5 %6
 I would guess this is something simple that I am just missing.  Thanks in advance for any and all help.

0 Kudos
0 Replies