Cisco Cisco Prime Network Registrar 8.0 Technical References
ImportDevice
18 CLI and API Guide for Cisco Prime Network Registrar IPAM 8.0
ImportDevice
Overview
The
ImportDevice
CLI imports devices into Cisco Prime Network Registrar IPAM.
This is used to bulk load information about existing network devices.
Usage
Direct
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.ipcontrol.cli.ImportDevice
–u <adminId> -p <admin password> -f <import_file> [-e <error messages>]
[-r <rejects file>] [-?]
–u <adminId> -p <admin password> -f <import_file> [-e <error messages>]
[-r <rejects file>] [-?]
Via command script (Unix)
$INCHOME/etc/cli/ImportDevice.sh –u <adminId> -p <admin password> -f <import_file>
[-e <error messages>] [-r <rejects file>] [-?]
[-e <error messages>] [-r <rejects file>] [-?]
Via command script (Windows) from the %INCHOME%/etc/cli directory
ImportDevice.cmd –u <adminId> -p <admin password> –f <import_file> [-e <error messages>]
[-r <rejects file>] [-?]
[-r <rejects file>] [-?]
Parameters
Parameter
Required
Description
-u <userId>
Yes
User Id
-p <pwd>
Yes
Password
-?
No
Print help
-f <import filename>
Yes
The name of the CSV file to import. See below for the required
file format.
-r <rejects file>
No
The name of the file that rejected (non-imported) records will be
placed in.
placed in.
-e <error messages>
No
The name of the file that error messages will be reported in.
File Format
Col
Field
Accepted Values
Required
A
IP Address
The IP Addresses of the Device. If there is more
than one, the device is created as a multi-homed
device. Separate multiple IP addresses with a
device. Separate multiple IP addresses with a
vertical bar (“|”).
Yes
B
Address Type
The address type of this device. Accepted values are:
Static, Dynamic DHCP, Automatic DHCP, Manual
DHCP, and Reserved. Note that if Dynamic,
DHCP, and Reserved. Note that if Dynamic,
Automatic, or Manual DHCP is specified, there
must be a DHCP server defined in the subnet
must be a DHCP server defined in the subnet
policies for this IP Address.
Yes
C
Host Name
Valid host name or APPLYNAMINGPOLICY
Yes
D
Device Type
The name of a device type configured in Cisco
Prime Network Registrar IPAM.
Yes, if
Hostname
specifies use
of naming
of naming
policy