Error reporting – HP Insight Management-Software User Manual
Page 20
-targetport2 : The TCP port associated with the alternate target IP address.
-tobayname : The name or number of the bay in the target enclosure
-tovcdg : The target Virtual Connect domain group name
-toenclosurename : The target Virtual Connect enclosure name
-untagged : Controls whether the network handles untagged packets
-uplinkset : The name of the shared uplinkset
-username : Username for CHAP and CHAPM authentication.
-validate : Validates certain preconditions
-vcdomaingroup : The name of the VCEM domain group for the profile
-vlanid : The vlanid to be used for the port mapping.
-vlanids : The vlanids to be used for the port mapping.
-wwntypeoverride : Override VCEM WWN and instead use the factory default
------------------------------------------------------------------
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 : Network and 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
server-port-map-range : Shared Server Downlink Port Mapping Range 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.
The 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 configuration 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
)
)
)
For more information, see
or the Systems Insight Manager
documentation.
20
Using the VCEMCLI