Cisco Cisco Prime Network Registrar 8.1 Technical References

Page of 316
ImportZone 
Cisco Prime Network Registrar IPAM 8.1.1 CLI and API Guide 
48 
ImportZone 
Overview 
The 
ImportZone
 CLI allows the user to bulk import DNS zones into Cisco Prime 
Network Registrar IPAM, and to update existing DNS zones. 
Usage 
Direct 
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.ipcontrol.cli.ImportDnsZoneCLI  
–u <adminId> -p <admin password> -f <import filename> [-r <rejects file>]  
[-e <error messages>] [-?] 
Via command script (Unix) 
$INCHOME/etc/cli/ImportZone.sh –u <adminId> -p <admin password> -f <import filename>  
[-r <rejects file>] [-e <error messages>] [-?] 
Via command script (Windows) from the %INCHOME%/etc/cli directory 
ImportZone.cmd –u <adminId> -p <admin password> -f <import filename> [-r <rejects file>] 
[-e <error messages>] [-?] 
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. 
Usage Example 
This example imports zones from the 
newzones.csv file, places into the newzones.reject file any 
records that could not be imported, and reports errors to the 
importerrors.txt file.   
Note: Zone options are not supported in the first release of this service. 
$INCHOME/etc/cli/ImportZone.sh –u joe –p joepwd –f newzones.csv -r newzones.reject  
–e importerrors.txt  
File Format 
Col 
Field 
Accepted Values 
Required 
Server 
The network service name of the DNS Server. 
Yes, if 
GalaxyNa
me is not 
supplied. 
Zone type 
Specifies the type of zone being imported. 
Accepted values are 
masterslaveforward or 
stub
Yes 
Domain Name 
Domain name already defined to Cisco Prime 
Network Registrar IPAM 
Yes