power command
Use the power commands to forcely or normally power on, power off, and restart host OS, and display the power status of the host server OS. The power commands support in-band mode and out-of-band mode.
power command syntax
OneCli.exe [misc] power<cmds> [<options>]
Command | Syntax example | Description |
---|---|---|
accycle |
| Perform AC power cycle. |
boottosetup |
| Restart the host server to make the UEFI setting take effect. |
dccycle |
| Perform DC power cycle.
|
forceoff |
|
|
forcerestart |
| Restart server immediately.
|
normaloff |
|
|
normalrestart |
| Restart server normally.
|
on |
| Power on the server. |
state |
|
|
triggernmi |
| Trigger NMI. |
Parameter | Required/Optional | Notes |
---|---|---|
--quiet | Optional | Answer yes for all questions and display less screen output as needed. |
| Optional | Refer to Table 2. |
Example of the state command
OneCli.exe power state --bmc userid:passwordD@host