beautypg.com

Show power-status, Syntax, Parameters – HP Insight Management-Software User Manual

Page 60: Output, Examples, Minimum required role based security, Remarks

background image

show power-status

The -show power-status command displays the power status of the indicated bay.

Syntax

-show power-status -enclosurename -bayname

Parameters

Table 27 Parameter descriptions for -show power-status

Optional

Required

Description

Parameter

x

The name of an enclosure in
the domain.

-enclosurename

x

The name of the bay in the
enclosure.

NOTE:

For a multi-blade

server the BayName must be
the name of the primary
bay.

-bayname

Output

The command reports the status of the indicated bay using one of the following strings and sets
the DOS ERRORLEVEL environment variable to the value shown in parenthesis:

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.

Most profile operations require that if a bay contains a server, it must be powered off before the
operation.

60

Using VCEM commands

This manual is related to the following products: