This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

In Trap Viewer passing value to an external script

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?