HP P9000 Command View Advanced Edition Suite Software 7.3.1-00 CLI Reference Guide

The following describes the format of the ImportHosts command and its parameters. For details
about how to create input files and how to use the ImportHosts command to use the import function,
see Chapter 7 on page 393:
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.
Format
To check input files, use the following format:
hdvmcli [URL] ImportHosts [options]
inputfile=host-information-file-name
[mappingfile=mapping-definition-file-name]
[resultfilepath=output-destination-of-check-result-file-and-error-information-file]
[function=check]
To import host information, use the following format:
hdvmcli [URL] ImportHosts [options]
inputfile=host-information-file-name
[mappingfile=mapping-definition-file-name]
[resultfilepath=output-destination-of-error-information-file]
function=import [overwrite={true|false}]
Command reference262