1 Reply Latest reply on May 3, 2016 8:04 AM by joepoutre

    In Trap Viewer passing value to an external script

    inekam

      Hello ALL. I am hoping you guys know the answer to this.

       

      I crated a rule that passes the alert to the script and executes it and the script does some data manipulation.

       

      The issue i am having is i need to pass the value to the script in quotes.

       

      This is the example of the trap

      ipcMxAlarmNumber=22

      ipcMxAlarmIdentifier=IPC TEST ALARM

      ipcMxAlarmSeverity=minor(1)

      ipcMxAlarmStatus=reported(2)

       

      They way i am calling the script is Execute script.bat

      C:\Scripts\AlertScript\Script.bat ${MESSAGE}

       

      What the script does is parsing the variable but it expects the variable in quote to know when it ends. Is there a way to send it in quotes?