HP XP P9000 Command View Advanced Edition Suite Software 7.6.0-00 CLI Reference Guide
Command execution example
hdvmcli HostScan -o "D:\logs\HostScan.log" model=XP12000 serialnum=14053
Command execution result
RESPONSE:
(Command completed; no data returned)
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 435:
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:
Command reference294