Cisco Cisco Prime Network Registrar 8.1 Technical References
ImportNetServiceWithTemplate
Cisco Prime Network Registrar IPAM 8.1.1 CLI and API Guide
43
ImportNetServiceWithTemplate
Overview
The
ImportNetServiceWithTemplate
CLI allows the user to bulk import DNS
servers into Cisco Prime Network Registrar IPAM by applying a pre-defined Server
Template.
Using the Cisco Prime Network Registrar IPAM GUI, create a DNS Server Template. This
Using the Cisco Prime Network Registrar IPAM GUI, create a DNS Server Template. This
is accomplished through the System Network Services Policies & Options DNS
Server Templates. Then use this CLI to create new servers using that template.
Usage
Direct
$INCHOME/jre/bin/java –cp $CLASSPATH
com.diamondip.netcontrol.cli.ImportNetServiceWithTemplateCLI –u <adminId>
-p <admin password> -f <import filename> [-r <rejects file>] [-e <error messages>] [-?]
com.diamondip.netcontrol.cli.ImportNetServiceWithTemplateCLI –u <adminId>
-p <admin password> -f <import filename> [-r <rejects file>] [-e <error messages>] [-?]
Via command script (Unix)
$INCHOME/etc/cli/ImportNetServiceWithTemplate.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
ImportNetServiceWithTemplate.cmd –u <adminId> -p <admin password> -f <import filename>
[-r <rejects file>] [-e <error messages>] [-?]
[-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 network services with template from the
netserviceswithtemp.csv file,
places into the
netserviceswithtemp.reject file any records that could not be imported, and
reports errors to the
importerrors.txt file.
$INCHOME/etc/cli/ImportNetServiceWithTemplate.sh –u joe –p joepwd
–f netserviceswithtemp.csv –r netserviceswithtemp.reject –e importerrors.txt
–f netserviceswithtemp.csv –r netserviceswithtemp.reject –e importerrors.txt
File Format
Col
Field
Accepted Values
Required
A
Name
The name of the Network Service. This can be any
combination of letters and numbers and should be
a fully qualified domain name (FQDN).
Yes