Add Hosts in BulkΒΆ
You can add an arbitrary number of hosts using a single CLI command.
Procedure
Prepare an XML file that describes the hosts to be added.
For more information, see Bulk Host XML File Format.
You can also create the XML configuration file from an existing, running configuration using the system host-bulk-export command.
Run the system host-bulk-add utility.
The command syntax is:
~[keystone_admin]$ system host-bulk-add <xml_file>
where <xml_file> is the name of the prepared XML file.
Power on the hosts to be added, if required.
Note
Hosts can be powered on automatically from board management controllers using settings in the XML file.
Results
The hosts are configured. The utility provides a summary report, as shown in the following example:
Success:
worker-0
worker-1
Error:
controller-1: Host-add Rejected: Host with mgmt_mac 08:00:28:A9:54:19 already exists
Postrequisites
After adding the host, you must provision it according to the requirements of the personality.
See also