Cisco Cisco Prime Network Registrar 8.0 Technical References

Page of 316
ImportContainer 
CLI and API Guide for Cisco Prime Network Registrar IPAM 8.0 
Command Line Interfaces (CLI)      15 
ImportContainer 
Overview 
The 
ImportContainer
 CLI allows the user to bulk import containers into Cisco Prime 
Network Registrar IPAM. 
Usage 
Direct 
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.netcontrol.cli.ImportContainerCLI  
–u <adminId> -p <admin password> -f <import filename> [-r <rejects file>]  
[-e <error messages>] [-?] 
Via command script (Unix) 
$INCHOME/etc/cli/ImportContainer.sh –u <adminId> -p <admin password> -f <import filename> 
[-r <rejects file>] [-e <error messages>] [-?] 
Via command script (Windows) from the %INCHOME%/etc/cli directory 
ImportContainer.cmd –u <adminId> -p <admin password> -f <import filename>  
[-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 containers from the newcontainers.csv file, places into the 
newcontainers.reject file any records that could not be imported, and reports errors to the 
importerrors.txt file. 
$INCHOME/etc/cli/ImportContainer.sh –u joe –p joepwd –f newcontainers.csv  
–r newcontainers.reject –e importerrors.txt  
File Format 
Col 
Field 
Accepted Values 
Required 
Container Name 
The name of the container.  If you are creating a 
device container, this container name must match 
exactly the name of a network element already in 
the database or the record will be rejected. 
Yes 
Container 
Description 
A brief description of the container. Use “\n” to 
separate lines. 
No