SetPowerAction
Sets the type of power action for the managed system.
Syntax
OOB
saa -i <IP or host name> -u <username> -p <password> -c SetPowerAction --action <action> [--interval <time interval>] [--post_complete]
In-Band
saa -c SetPowerAction --action <action> [--interval <time interval>]
Multiple Systems OOB
saa -l <system list file> [-u <username> -p <password>] -c SetPowerAction --action <action> [--interval <time interval>] [--post_complete]
Options
--action <action>: Sets power action to:0= up1= down2= cycle3= reset4= softshutdown5= reboot6= accycle7= nmi8= on--interval <time interval>: Sets the power cycle interval in seconds (optional).--post_complete: Waits for the managed system's POST to complete after reboot (optional).
Examples
OOB
[SAA_HOME]# ./saa -i 192.168.34.56 -u ADMIN -p PASSWORD -c SetPowerAction --action up
[SAA_HOME]# ./saa -i 192.168.34.56 -u ADMIN -p PASSWORD -c SetPowerAction --action 0
In-Band
[SAA_HOME]# ./saa -c SetPowerAction --action up
[SAA_HOME]# ./saa -c SetPowerAction --action 0
Multiple Systems OOB
[SAA_HOME]# ./saa -l SList.txt -u ADMIN -p PASSWORD -c SetPowerAction --action up
[SAA_HOME]# ./saa -l SList.txt -u ADMIN -p PASSWORD -c SetPowerAction --action 0
Output
Proceeding to power up the managed system.
Notes
upmaps to the RedfishForceOnreset type, andonmaps to RedfishOn.- The supported
--actionvalues are extracted from the RedfishResetActionInforesponse, and may vary by platform. For example, query supported actions with:curl -k -X GET -H "Content-Type: application/json" -u "ADMIN:ADMIN" "https://<BMC_IP>/redfish/v1/Systems/System_0/ResetActionInfo" - If the execution Status field for a managed system is SUCCESS, the BIOS and BMC capabilities of the managed system will be shown in the Execution Message section of the created log file.