Cisco Cisco Prime Network Registrar 8.0 Technical References

Page of 316
ImportRootBlock 
CLI and API Guide for Cisco Prime Network Registrar IPAM 8.0 
Command Line Interfaces (CLI)      45 
ImportRootBlock 
Overview 
The 
ImportRootBlock
 CLI allows the user to bulk import root blocks into Cisco Prime 
Network Registrar IPAM. 
Usage 
Direct 
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.netcontrol.cli.ImportRootBlockCLI  
–u <adminId> -p <admin password> -f <import filename> [-r <rejects file>]  
[-e <error messages>] [-?] 
Via command script (Unix) 
$INCHOME/etc/cli/ImportRootBlock.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 
ImportRootBlock.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 Root Blocks from the newrootblocks.csv file, places into the 
newrootblocks.reject file any records that could not be imported, and reports errors to the 
importerrors.txt file. 
$INCHOME/etc/cli/ImportRootBlock.sh –u joe –p joepwd –f newrootblocks.csv  
–r newrootblocks.reject –e importerrors.txt  
File Format 
Col 
Field 
Accepted Values 
Required 
Container 
The name of the container that will hold the block.  
Names can be in either short or long format.  Short 
format example: Dallas.  Long format example:  
Cisco Prime Network Registrar 
IPAM/Texas/Dallas.  Long format eliminates 
ambiguity in cases where there are duplicate 
container names. 
Yes 
IP space 
The IP block to create.  This should be in the 
format of a network address (e.g., 10.0.0.0). 
Yes