To set up one level of hostgroups beneath the root, simply create the new hostgroups. You do not
need to declare that the root node is the parent. To set up lower levels of hostgroups, declare a
parent element for hostgroups.
Optionally, you can specify a domain rule for a hostgroup. Use only alphanumeric characters and
the underscore character (_) in hostgroup names.
Do not use a host name as a group name.
To create a hostgroup tree using the CLI:
1.
Create the first level of the tree and optionally declare a domain rule for it:
<installdirectory>/bin/ibrix_hostgroup -c -g GROUPNAME [-D DOMAIN]
2.
Create all other levels by specifying a parent for the group and optionally a domain rule:
<installdirectory>/bin/ibrix_hostgroup -c -g GROUPNAME [-D DOMAIN] [-p PARENT]
Adding an X9000 client to a hostgroup
You can add an X9000 client to a hostgroup or move a client to a different hostgroup. All clients
belong to the default
clients
hostgroup.
To add or move a host to a hostgroup, use the
ibrix_hostgroup
command as follows:
<installdirectory>/bin/ibrix_hostgroup -m -g GROUP -h MEMBER
For example, to add the specified host to the
finance
group:
<installdirectory>/bin/ibrix_hostgroup -m -g finance -h cl01.hp.com
Adding a domain rule to a hostgroup
To set up automatic hostgroup assignments, define a domain rule for hostgroups. A domain rule
restricts hostgroup membership to clients on a particular cluster subnet. The management console
uses the IP address that you specify for clients when you register them to perform a subnet match
and sorts the clients into hostgroups based on the domain rules.
Setting domain rules on hostgroups provides a convenient way to centrally manage mounting,
tuning, allocation policies, and preferred networks on different subnets of clients. A domain rule
is a subnet IP address that corresponds to a client network. Adding a domain rule to a hostgroup
restricts its members to X9000 clients that are on the specified subnet. You can add a domain rule
at any time.
To add a domain rule to a hostgroup, use the
ibrix_hostgroup
command as follows:
<installdirectory>/bin/ibrix_hostgroup -a -g GROUPNAME -D DOMAIN
For example, to add the domain rule
192.168
to the
finance
group:
<installdirectory>/bin/ibrix_hostgroup -a -g finance -D 192.168
Viewing hostgroups
To view hostgroups, use the following command. You can view all hostgroups or a specific
hostgroup.
Adding an X9000 client to a hostgroup
45