I'm looking to run a powershell script from a command type profile in AO. Where will it be looking for the script if entered on the command string line?
Also what parameters can be passed. I looked at the $ variables available, those?
Here's some good info for you:
NAS script editor - The nas Script Editor - CA Unified Infrastructure Management Probes - CA Technologies Documentation
NAS command line interface - The nas Command Interface - CA Unified Infrastructure Management Probes - CA Technologies Documentation
Those pages should show you what variables can be used and how to define them.
The actual script txt file is stored in the $PATH\Nimsoft\probes\service\nas\scripts\ directory.
Hope that helps!
Thanks for the info. If I understand the doc about the command it can only call a LUA script. Is that correct? If so we need to shell out to a PowerShell script and pass the robot name parameter. Possible?
The NAS AO "script" action can only run the LUA scripts mentioned in the location above.
The "command" option can run any command that will be valid on the operating system - including an .exe or .bat file for example. The file(s) you want to execute should be placed in the \probes\service\nas\ folder.
Many times we find that when passing parameters to a file/script it works better to encapsulate that in a .bat (or .sh) file and have the AO call that file.