Parameters
Keyword and Value
Description
Default Value
-i host group ID
The host group ID. The value
ranges from 0 to 31.
If you do not specify a host
group for adding a host, the
host is added to the default
host group.
0.
-n host name
The name contains 1 to 32
characters, including
numbers, letters, underscores
and hyphens. The first
character cannot be a hyphen.
The name of a host is case
sensitive, and must be
unique.
None.
Modes
Normal mode.
Level
Super administrator level and administrator level.
Usage Guidelines
When using this command, note the following items:
l
The command
addhost
-n
host name
is used to name the host and add it to the default host
group.
l
The command
addhost
-i
host group ID
-n
host name
is used to name the host and add it
to a specified host group.
Example
Add the host user into host group 2.
OceanStor: admin> addhost -i 2 -n user
6.3.6 chghost
Function
The command
chghost
is used to change the host name.
6 Service Management Commands
OceanStor S2600 Storage System
Command Reference
6-20
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 07 (2010-05-20)