HP MSA 1040 CLI Reference Guide (762782-001, March 2014)
set host-name 157
set host-name
Description Changes the nickname, if any, and optionally the profile of a host entry.
This command can also be used to remove a manually created host. If the host is unmapped, it is
immediately removed; if the host is mapped, it will be removed after you unmap it.
Syntax
set host-name
id
host
[profile standard|hp-ux]
[
new-nickname
]
Parameters id
host
The ID or nickname of the host.
profile standard|hp-ux
Optional. Changes the profile of a host that has a nickname.
• standard: Default profile.
• hp-ux: The host uses Flat Space Addressing.
new-nickname
Optional. Changes the host’s nickname to the specified name. The name is case sensitive; cannot
include a comma, double quote, left angle bracket, or backslash; and can have a maximum of 15
bytes. A name that includes a space must be enclosed in double quotes. If this parameter is omitted
for a manually created host, the host will be removed.
Example Initially set the nickname for a discovered host:
# set host-name id 257000c0ffd74c07 Host1
Success: Command completed successfully. (2011-10-12 12:17:00)
Change Host1’s nickname to MyHost and its profile to HP-UX:
# set host-name id Host1 profile hp-ux MyHost
Success: Command completed successfully. (2012-10-21 12:17:10)
Remove the nickname and profile for a discovered host:
# set host-name id MyHost
Success: Command completed successfully. (2011-10-12 12:17:22)
Remove a manually created host:
# set host-name id MyHost
Success: Command completed successfully. (2012-01-21 12:19:16)
See also • create host
• delete host
• show hosts