HP P9000 Command View Advanced Edition Suite Software 7.2 CLI Reference Guide

hdvmcli [URL] AddHostRefresh [options]
{objectid=object-ID-of-target-host|hostname=name-of-target-host}
Parameters
Table 84 AddHostRefresh command parameters
DescriptionStatusParameter name
Object ID of the target host
You must specify either objectid or hostname. Do not specify
both parameters at the same time. If they are specified at the
same time, an error will occur.
Optional
objectid
Name of the target host
You must specify either objectid or hostname. Do not specify
both parameters at the same time. If they are specified at the
same time, an error will occur.
Optional
hostname
Parameter values to obtain in advance
objectid
Obtain this value from the execution result of the GetHost command. In the execution result of
this command, the objectID value appears under An instance of Host. Use this objectID
value to specify the objectid parameter.
hostname
Obtain this value from the execution result of the GetHost command. In the execution result of
this command, the name value appears under An instance of Host. Use this name value
to specify the hostname parameter.
Command execution example
In this example, the AddHostRefresh command obtains the latest information about the host where
the object ID is HOST.5.
hdvmcli AddHostRefresh -o "D:\logs\AddHostRefresh.log" "objectid=*****"
*****: The value is encoded by the CLI.
Command execution result
RESPONSE:
An instance of Host
objectID=*****
name=rise
hostID=5
ipAddress=192.168.32.164
capacityInKB=0
CLI Reference Guide 233