Anyone using Rexx scripts?
You can execute any external program as an alert action, including a windows Rexx interpreter.
http://rexxinfo.org/html/rexxinfo2.html
So far it appears to only work when I do not use the alert variable form of ${...}
Instead, I have to spell it out, like for instance, NodeName, or ServiceName, .etc
Any ideas on how to handle or pass these variables from Orion alerts?
Thanks for the reply.
Can you give me an example of what's not working (and how it's not working)?
For example.
It only works when I change this
C:\WINDOWS\system32\regina.exe StartService ${Node.Caption} ${ComponentName}
to this
C:\WINDOWS\system32\regina.exe StartService mynodename audiosrv
By work I assume you mean it starts the service? Can you add some debugging to your script to write the arguments out to a file somewhere so we can make sure they're interpolating properly? If you're winding up with blanks, there's a problem with the variables. If you're getting values but they're the wrong ones, that would be helpful too. Did you actually name your component 'audiosrv' or is it still called Windows Service and you just entered 'audiosrv' as the net name in the component's configuration?