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.
Examples.
Trap --
sysUpTime=0.00 seconds
snmpTrapOID=SNMPv2-SMI:enterprises.954.1.1.1.1.0.10
enterprises.954.1.1.1.1.4.1386=TSJPTWA7
enterprises.954.1.1.1.1.11.1386=TSJPTWA7 J01598 ENDED NOTOK!
enterprises.954.1.1.1.1.13.1386=SYSA
enterprises.954.1.1.1.1.14.1386=server1.company.com/.../TSJPTWA7 .txt
enterprises.954.1.1.1.1.15.1386=MAINFRAME
enterprises.954.1.1.1.1.16.1386=SYSA
Script --
d:\scripts\runscript.cmd
Variables needed
The variable enterprises.954.1.1.1.1.4.1386 = JobName
The variable enterprises.954.1.1.1.1.11.1386 = Abend Code
The variable enterprises.954.1.1.1.1.13.1386 = originated from
The variable enterprises.954.1.1.1.1.15.1386= Server
Using just one variable I have tried the following and more
d:\scripts\runscript.cmd "$enterprises.954.1.1.1.1.4.1386"
d:\scripts\runscript.cmd "${enterprises.954.1.1.1.1.4.1386}"
d:\scripts\runscript.cmd $enterprises.954.1.1.1.1.4.1386
d:\scripts\runscript.cmd "%enterprises.954.1.1.1.1.4.1386"
d:\scripts\runscript.cmd %enterprises.954.1.1.1.1.4.1386
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\runscript.pl %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.