Show power-status, Show, Syntax – HP Insight Management-Software User Manual
Page 73: Parameters, Output, Examples, Minimum required role-based security, Remarks
show power-status
The -show power-status command displays the power status of the indicated bay.
Syntax
-show power-status -enclosurename <enclosurename> -bayname <bayname>
Parameters
Table 31 Parameter descriptions for -show power-status
Optional
Required
Description
Parameter
x
Specifies the name of an
enclosure in the domain.
-enclosurename
x
Specifies the name of the
bay in the enclosure.
NOTE:
For a multiblade
server, the bay name must
be the name of the primary
bay.
-bayname
Output
The command reports the status of the indicated bay by using one of the following strings and sets
the DOS ERRORLEVEL environment variable to the value shown in parentheses:
•
ON—Server is present and powered on (1).
•
OFF—Server is present and powered off (0).
•
UNKNOWN—No server is present in the bay (240).
Examples
Power on the server in bay 2 of the enclosure enc0 if it is currently powered off:
vcemcli –show power-status –enclosurename enc0 –bayname 2
if ERRORLEVEL 240 (
echo There is no server in bay 2
) else (
if ERRORLEVEL 1 (
echo Server in bay 2 is already on
) else (
echo Turning on server in bay 2
vcemcli -poweron devicebay -enclosureName enc0 -bayname 2
if ERRORLEVEL 1 goto ERRORHANDLER
)
)
Minimum required role-based security
VCEM User
Remarks
An error is reported if the bay or enclosure name is invalid.
show power-status
73