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

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}]
Parameters
Table 100 ImportHosts command parameters
DescriptionStatusParameter name
Host information file name
Use an absolute path or relative path to specify a CSV file that
contains host information.
If a host that cannot be registered with Device Manager is
specified, the record for that host is ignored and the subsequent
records are registered. However, if there are multiple records for
the same host name in the host information file, only the first
record is registered. If the first record for a given host name has
an error, information for that host is not registered, even if other
records for the same host name exist.
Required
inputfile
CLI Reference Guide 303