You can add multiple hosts to a host collection.
Prerequisites
A host must be registered to {ProjectName} to add it to a host collection.
Note that if you add a host to a host collection, the {Project} auditing system does not log the change.
Procedure
-
In the {ProjectWebUI}, navigate to Hosts > Host Collections.
-
Select the host collection where the host should be added.
-
On the Hosts tab, select the Add subtab.
-
Select the hosts to be added from the table and click Add Selected.
CLI procedure
-
To add multiple hosts to a host collection, enter the following command:
# hammer host-collection add-host \ --host-ids My_Host_ID_1,My_Host_ID_2 \ --id My_Host_Collection_ID