CLI Guide

serveraction
Table 86. Details of serveraction
Description Enables you to perform power management operations on the host system.
To use this subcommand, you must have the Execute Server Control Commands permission.
Synopsis
racadm serveraction -m <module> <action>
racadm serveraction -a <action>
Input
-m<module> —
server-n, where n=1–4
-a — Performs action on all servers. Not allowed with the powerstatus action.
<action> — Species the action. The options for the <action> string are:
— graceshutdown — Performs a graceful shutdown of the server. If the operating system on the
server cannot be cleanly shut down, this operation is not performed.
— hardreset — Performs a reset (reboot) operation on the managed system.
— powercycle — Issues a power-cycle operation on the managed system. This action is similar to
pressing the power button on the system’s front panel to turn o, and then turn on the system.
— powerdown — Turns o the managed system.
— powerup — Turns on the managed system.
— powerstatus — Displays the current power status of the server (ON or OFF).
— reseat — Performs a virtual reseat of the server. This operation simulates reseating the server
by resettig the iDRAC on a server.
NOTE: The reseat option is not available for individual FM120 servers.
NOTE: The -f option is required to force the ‘reseat’ action.
NOTE: The action powerstatus is not allowed with an -a option.
Output Displays an error message if the requested operation fails, or a success message if the operation is
completed.
Example
Turn o server 3 from the CMC.
racadm serveraction -m server-3 powerdown
Server power operation successful.
Turn o server 3 from iDRAC.
racadm serveraction powerdown
Server power operation successful
Turn o server 3 from CMC when power is already turned o on that server.
racadm serveraction -m server-3 powerdown
Server is already powered OFF.
Turn o the server from CMC when power is already turned o on that server.
racadm serveraction powerdown
76 RACADM Subcommand Details