HP 3PAR OS 3.1.3 Command Line Interface Reference

createhostset
DESCRIPTION
The createhostset command defines a new set of hosts and provides the option of assigning
one or more existing hosts to that set. The command also allows the addition of hosts to an existing
set by use of the -add option.
SYNTAX
createhostset [options] <setname> [<host | pattern>...]
AUTHORITY
Super, Edit
Any role that is granted the hostset_create right.
OPTIONS
-add
Specifies that the hosts listed should be added to an existing set. At least one host must be specified.
-comment <comment>
Specifies any comment or additional information for the set. The comment can be up to 255
characters long. Unprintable characters are not allowed.
-domain <domain>
Create the host set in the specified domain. For an empty set the default is to create it in the current
domain, or no domain if the current domain is not set. A host set must be in the same domain as
its members; if hosts are specified as part of the creation then the set will be created in their domain.
The -domain option should still be used to specify which domain to use for the set when the hosts
are members of domain sets. A domain cannot be specified when adding a host to an existing set
with the -add option.
SPECIFIERS
<setname>
Name of the host set to create/add to.
<host | pattern>...
Optional list of hosts or glob-style patterns matching hosts that are to be included in the host set.
If no <host> is specified a host set with no hosts is created.
RESTRICTIONS
None
EXAMPLES
To create an empty hostset:
cli% createhostset hostset
To add a host to the set:
cli% createhostset -add hostset hosta
114 Create Commands