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.

Orion/SAM Variables availble to Powershell Script Monitor

Is their a definitive list of what variables can be passed to a PS script monitor?   It would be nice to know in general, but my main use case it to be able to parse log files or directory contents for events/files generated since last poll.

Thanks!

Ben

  • I have the variables listed in this post. You can't pass the variables into the script but you can reference them directly in the script. As far as using info/results from previous polls....that is trickier since there isn't a variable that can directly be used for that. You'll have to dump the results to a file or DB and then have the script scrap that data out. It's kinda duck taped together but you could create a Node/Application Custom Property in Orion. Then have your script modify that value via a SQL query. Then use that variable as outlined in the link above in your script.