Hi folks,
I made a Python script that has been confirmed can remotely turn on/off the outlet on the Power Distribution Unit. Now I am trying to integrate it with BCM’s Custom Power Script feature, I changed it to receive two arguments which are ‘Action (On/Off/Reset/Status)’ and ‘Device (The host added on the cluster)’ so once the function receive the argument, it will run SSH and connect to the PDU to power up/off it but BCM gives me exit code 147 and the PDU status does not change status, and I couldn’t find out where the issue is.
Currently I checked the file permission is executable, and made sure the code will return 0 for success and non-zero for other reason. if you have any ideas, please help.