HP P9000 Command View Advanced Edition Suite Software 7.4.1-00 CLI Reference Guide (TB581-96335, April 2013)

NOTE:
To add hosts, the hosts whose information you imported are registered as normal hosts.
To update (overwrite) host information, use the GUI to confirm that the hosts to be updated have
been registered manually. The ImportHosts command only updates normal hosts that were
manually registered by using the Device Manager GUI or CLI (AddHost command or HostScan
command).
CAUTION:
To update (overwrite) host information, you must specify all information items in the corresponding
records in the host information file.
For example, if you want to change only the host IP address, you must also specify information other
than the IP address in the host information file. Information that is not specified in the host information
file will be deleted from Device Manager.
1. Create a host information file (CSV file).
You can create a host information file in either of the following ways:
Converting a spreadsheet software file that is used to manage hosts
Exporting host information as a report from the Device Manager GUI
The mapping definition file defines the types of host information to be imported from the host
information file. Therefore, the host information file can contain information that you do not want
to import. The mapping definition file can also be used to determine the order of items (columns).
Make sure that the host information file does not specify any hosts whose information you do not
want to import.
2. Create a mapping definition file.
The mapping definition file defines the import start position in the host information file, and maps
between the contents of the host information file and the actual information to be imported.
A sample mapping definition file (import.properties) is in the Device Manager CLI installation
directory. You can use the sample file to create a new mapping definition file. We recommend
that you back up the import.properties file before editing it.
3. Check whether the data in the input files has the correct format.
Execute the ImportHosts command by specifying check for the function parameter.
The execution results of the command are sent to the standard output. Verify the results according
to the messages that are output.
4. Import host information.
Execute the ImportHosts command by specifying import for the function parameter.
To update (overwrite) the existing host information in Device Manager, specify true for the
overwrite parameter.
The execution results of the command are sent to the standard output. Verify the results according
to the messages that are output.
5. Check the hosts that are newly imported.
CLI Reference Guide 425