Cisco Cisco Prime Network Registrar 8.0 Technical References

Page of 316
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>] [-?] 
Via command script (Unix) 
$INCHOME/etc/cli/ImportDevice.sh –u <adminId> -p <admin password> -f <import_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>] [-?] 
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. 
-e <error messages> 
No 
The name of the file that error messages will be reported in. 
File Format 
Col 
Field 
Accepted Values 
Required 
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 
vertical bar (“|”). 
Yes 
Address Type 
The address type of this device. Accepted values are: 
Static, Dynamic DHCP, Automatic DHCP, Manual 
DHCP, and Reserved. Note that if Dynamic, 
Automatic, or Manual DHCP is specified, there 
must be a DHCP server defined in the subnet 
policies for this IP Address. 
Yes 
Host Name 
Valid host name or APPLYNAMINGPOLICY 
Yes 
Device Type 
The name of a device type configured in Cisco 
Prime Network Registrar IPAM. 
Yes, if 
Hostname 
specifies use 
of naming 
policy