beautypg.com

Table 4-87 modifyhost command parameters – HP XP Command View Advanced Edition Software User Manual

Page 199

background image




Command line interface commands



199

Table 4-87

ModifyHost command parameters

Parameter Name

Status

Description

objectid

Optional

Object ID of the host to be be modified

NOTE:

You must specify objectid or hostname.

hostname

Optional

Name of the host to modify
Omit this parameter if you do not want to change the name.
The number of characters that can be used for a name is 1-64
bytes.
The value specified for this parameter differs depending on
whether objectid is specified.

When objectid is specified:

Specify the new name of the host.

When objectid is not specified:

Specify the host name to manipulate

NOTE:

Spaces at the beginning or end of a name are not

registered.

NOTE:

When web client is also used, follow the web client's

specification rule.

NOTE:

You must specify objectid or hostname.

wwnlist

Optional

Comma-separated list of WWNs to replace existing WWNs
If you omit this parameter, all WWNs in the host will be deleted.

newhostname

Optional

New name of the host

NOTE:

If you specify this parameter, you must also specify

objectid

or hostname.

ipaddress

Optional

New IPv4 IP address of an existing host
Omit this parameter if you are not changing the IPv4 IP address of
the host.

ipv6address

Optional

New IPv6 IP address of an existing host
Omit this parameter if you are not changing the IPv6 IP address of
the host.

Command execution example:

hdvmcli ModifyHost -o "D:\logs\ModifyHost.log" "objectid=*****" "hostname=snow"
"wwnlist=12.34.56.78.90.AB.CD.EF,01.23.45.67.89.AB.CD.EF"
"ipaddress=172.18.32.9"

*****

: The value is encoded by the CLI.

Command execution result:

RESPONSE

An instance of Host

objectID=*****

name=snow

ipAddress=172.18.32.9

capacityInKB=0

hostType=-1

List of 2 WWN elements:

An instance of WWN

WWN=12.34.56.78.90.AB.CD.EF

An instance of WWN

WWN=01.23.45.67.89.AB.CD.EF