Cisco Cisco Prime Network Registrar 8.1 Technical References
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>] [-?]
–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>] [-?]
[-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>] [-?]
[-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
–e importerrors.txt
File Format
Col
Field
Accepted Values
Required
A
Server
The network service name of the DNS Server.
Yes, if
GalaxyNa
me is not
supplied.
B
Zone type
Specifies the type of zone being imported.
Accepted values are
master, slave, forward or
stub.
Yes
C
Domain Name
Domain name already defined to Cisco Prime
Network Registrar IPAM
Yes