Cisco Cisco Prime Network Registrar 8.1 Technical References
ImportDomainResourceRecord
Cisco Prime Network Registrar IPAM 8.1.1 CLI and API Guide
32
ImportDomainResourceRecord
Overview
The
ImportDomainResourceRecord
CLI allows the user to bulk import DNS resource
records for a domain into Cisco Prime Network Registrar IPAM. This CLI allows the
administrator to enter resource records that are not bound to a particular device.
Note: For Glue records that link one zone to another, use the
Note: For Glue records that link one zone to another, use the
ImportZoneResourceRecord
CLI.
Usage
Direct
$INCHOME/jre/bin/java –cp $CLASSPATH
com.diamondip.ipcontrol.cli.ImportDomainResourceRecordCLI –u <adminId>
-p <admin password> -f <import filename> [-r <rejects file>] [-e <error messages>] [-?]
com.diamondip.ipcontrol.cli.ImportDomainResourceRecordCLI –u <adminId>
-p <admin password> -f <import filename> [-r <rejects file>] [-e <error messages>] [-?]
Via command script (Unix)
$INCHOME/etc/cli/ImportDomainResourceRecord.sh –u <adminId> -p <admin password>
-f <import filename> [-r <rejects file>] [-e <error messages>] [-?]
-f <import filename> [-r <rejects file>] [-e <error messages>] [-?]
Via command script (Windows) from the %INCHOME%/etc/cli directory
ImportDomainResourceRecord.cmd –u <adminId> -p <admin password> -f <import filename>
[-r <rejects file>] [-e <error messages>] [-?]
[-r <rejects file>] [-e <error messages>] [-?]
Parameters
Parameter
Require
d
d
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 resource records from the n
ewresourcerecs.csv file, places into the
newresourcerecs.reject file any records that could not be imported, and reports errors to the
importerrors.txt file.
$INCHOME/etc/cli/ImportDomainResourceRecord.sh –u joe –p joepwd –f newresourcerecs.csv
–r newresroucerecs.reject –e importerrors.txt
–r newresroucerecs.reject –e importerrors.txt
File Format
Col
Field
Accepted Values
Required
A
Domain
The name of the domain to which the resource records
will be added.
Yes
B
Domain Type
The name of the domain type to which the domain
belongs. Defaults to “Default”
No