Cisco Cisco Prime Network Registrar 8.0 Technical References
ImportNetElement
CLI and API Guide for Cisco Prime Network Registrar IPAM 8.0
Command Line Interfaces (CLI) 37
ImportNetElement
Overview
The
ImportNetElement
CLI allows the user to bulk import network elements into Cisco
Prime Network Registrar IPAM.
Usage
Direct
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.netcontrol.cli.ImportNetElementCLI
–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/ImportNetElement.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
ImportNetElement.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.
placed in.
-e <error messages>
No
The name of the file that error messages will be reported in.
Usage Example
This example imports Network Elements from the netelements.csv file, places into the
netelements.reject file any records that could not be imported, and reports errors to the
importerrors.txt file.
importerrors.txt file.
$INCHOME/etc/cli/ImportNetElement.sh –u joe –p joepwd –f netelements.csv
–r netelements.reject –e importerrors.txt
–r netelements.reject –e importerrors.txt
File Format
Col
Field
Accepted Values
Required
A
Name
The name of the Network Element. This can be
any combination of letters and numbers.
Yes
B
IP Address/FQDN
The IP address or fully-qualified domain name
(FQDN) of the Network Element. This must be a
valid IPv4 or IPv6 IP address, or a fully-qualified
valid IPv4 or IPv6 IP address, or a fully-qualified
host name.
Yes