HP XP7 Command View Advanced Edition CLI Reference Guide (TK981-96006, May 2014)

ImportHosts
ImportHosts imports information about hosts from the input files (CSV-format host information file
and mapping definition file). This command also checks information in input files.
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 521:
NOTE:
If you add hosts, the imported hosts are registered as normal hosts or virtualization servers.
To update (overwrite) host information, confirm that the hosts to be updated have been registered
manually (hosts registered by using the AddHost command or the HostScancommand). The
ImportHosts command only updates normal hosts or virtualization servers that were manually
registered by using the Device Manager GUI or CLI.
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}]
CLI Reference Guide 357