Support Centre

Find articles, help and advice.

 
Welcome, Guest Login

Support Center

BES - piAMON not returned desired results

Last Updated: Oct 07, 2014 03:39PM UTC

Problem


A script being run by piAMON on a remote server is not returning the desired results. It's returning nothing for a value where a value should be present. When running the script on the actual server it works correctly.
 

Diagnosis


Your starting point for diagnosis should be placing the MC in debug via the BSD Admin Console.
Once in debug check the $PPLOG/piAMON_Log. This will detail the actual ssh commands being issued.
Try running the ssh command direct from the BES command line to see what results are returned.
 

Common Cause


It's important to note that SSH does not execute a login shell, it executes the command being passed so if an environment needs to be established it would have to be done from the command. In short you may find that if your script or called commands from the script are reliant on environmental variables being set, even simple ones such as $PATH, that you will need to set these within your script. Sometimes it's easier to simply run the relevant profile script for the shell the script is running under.

Once done check the script runs successfully both locally and remotely across SSH.

Contact Us

desk.com@interlinksoftware.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete