Cisco Cisco Prime Network Registrar 8.0 Technical References
ImportGalaxyDomain
CLI and API Guide for Cisco Prime Network Registrar IPAM 8.0
Command Line Interfaces (CLI) 35
ImportGalaxyDomain
Overview
The
ImportGalaxyDomain
CLI allows the user to bulk import Galaxy Domains into
Cisco Prime Network Registrar IPAM.
Usage
Direct
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.ipcontrol.cli.ImportGalaxyDomainCLI
–u <adminId> -p <admin password> -f <import filename> [-r <rejects file>]
[-e <error messages>] [-v] [-?]
–u <adminId> -p <admin password> -f <import filename> [-r <rejects file>]
[-e <error messages>] [-v] [-?]
Via command script (Unix)
$INCHOME/etc/cli/ImportGalaxyDomain.sh –u <adminId> -p <admin password>
-f <import filename> [-r <rejects file>] [-e <error messages>] [-v] [-?]
-f <import filename> [-r <rejects file>] [-e <error messages>] [-v] [-?]
Via command script (Windows) from the %INCHOME%/etc/cli directory
ImportGalaxyDomain.cmd –u <adminId> -p <admin password> -f <import filename>
[-r <rejects file>] [-e <error messages>] [-v] [-?]
[-r <rejects file>] [-e <error messages>] [-v] [-?]
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.
-v
No
Produces verbose output.
Usage Example
This example import galaxy domains from the newgdomains.csv file, places into the
newgdomains.reject file any records that could not be imported, and reports errors to the
importerrors.txt file.
$INCHOME/etc/cli/ImportGalaxyDomain.sh –u joe –p joepwd –f newgdomains.csv
-r newgdomains.reject –e importerrors.txt
-r newgdomains.reject –e importerrors.txt
File Format
Col
Field
Accepted Values
Required
A
Galaxy Name
Name of the Galaxy to which to assign this domain.
Yes
B
Domain Name
Domain name, already defined to Cisco Prime Network
Registrar IPAM, to be assigned to specified galaxy.
Registrar IPAM, to be assigned to specified galaxy.
Yes
C
Domain Type
The name of the domain type to which the domain
belongs. If not specified, the “Default” domain type
will be used.
No