To configure host groups from the command line, use the following arguments for the qconf command:
qconf -ahgrp [host-group-name]
The -ahgrp option (add host group) adds a new host group to the list of host groups. See the hostgroup(5) man page for a detailed description of the configuration format.
The -Ahgrp option (add host group from file) displays an editor containing a host group configuration defined in filename. The editor is either the default vi editor or an editor corresponding to the EDITOR environment variable. The host group is configured by changing the configuration and saving to disk.
The -dhgrp option (delete host group) deletes the specified host group from the list of host groups. All entries in the host group configuration are lost.
The -mhgrp option (modify host group) displays an editor containing the configuration of the specified host group as template. The editor is either the default vi editor or an editor corresponding to the EDITOR environment variable. The host group configuration is modified by changing the template and saving to disk.
The -Mhgrp option (modify host group from file) uses the content of filename as host group configuration template. The configuration in the specified file must refer to an existing host group. The configuration of this host group is replaced by the file content.
The -shgrp option (show host group) shows the configuration of the specified host group.
qconf -shgrp_tree host-group-name
The -shgrp_tree option (show host group as tree) shows the configuration of the specified host group and its sub-hostgroups as a tree.
qconf -shgrp_resolved host-group-name
The -shgrp_resolved option (show host group with resolved host list) shows the configuration of the specified host group with a resolved host list.
The -shgrpl option (show host group list) displays a list of all host groups.