Error reporting – HP Insight Management-Software User Manual

Page 17

Advertising
background image

------------------------------------------------------------------
Managed Elements
------------------------------------------------------------------
devicebay : Bay which can contain a Virtual Connect server.
enet-connection : Ethernet Network Connection
fc-connection : Fibre Channel SAN Fabric Connections
fcoe-connection : FCoE Fabric Connections
iscsi-boot-param : iSCSI Boot Parameter information
iscsi-connection : iSCSI Network Connections
job : VCEM jobs
power-status : Bay power status
profile : Virtual Connect Server Profile
profiles : VCEMCLI profile export information
server-port-map : Shared Server Downlink Port Mapping Configuration
vcem-status : The VCEM management status of the VC domain
version : VCEMCLI Version Information

Error Reporting

All VCEMCLI commands can report errors. These error messages contain both a text description
of the exception and a numeric value in string form that represents the error code for the
corresponding exception.

VCEMCLI sets the DOS ERRORLEVEL environment variable based on the success or failure of the
command. Success is indicated by a level of zero (0). Failure is indicated by levels of one (1) or
greater where the specific value corresponds to an error described in the error message tables.

For the -show command, the ERRORLEVEL environment variable is set to indicate state, not an
error condition. This allows for a script to execute -show for jobs or power states and then based
on the value of ERRORLEVEL change the control flow of a script. For example:

for /L %%I in (1,1,%MAXBAYS%) DO (
%CLI% -show power-status -enclosureName %ENCLNAME% -bayname %%I
if ERRORLEVEL 240 (
echo There is no server in bay %%I
) else (
if ERRORLEVEL 1 (
echo Server in bay %%I is already on
) else (
echo Turning on server in bay %%I
%CLI% -poweron devicebay -enclosureName %ENCLNAME% -bayname %%I
if ERRORLEVEL 1 goto ERRORHANDLER
)
)
)

See

“Error Messages” (page 67)

or the Systems Insight Manager documentation for more

information.

Error Reporting

17

Advertising
This manual is related to the following products: