Cisco Cisco Prime Network Registrar 8.0 Technical References
![Cisco](https://files.manualsbrain.com/attachments/7380d0050044647c30f5c24bbbf5d0c0b6d9bb84/common/fit/150/50/faa183d287233c52228cfea3dbc2a127fe780f60564fcb0955d9c3d1cd23/brand_logo.png)
ImportChildBlock
CLI and API Guide for Cisco Prime Network Registrar IPAM 8.0
Command Line Interfaces (CLI) 11
ImportChildBlock
Overview
The
ImportChildBlock
CLI allows the user to bulk import child blocks into Cisco
Prime Network Registrar IPAM.
Usage
Direct
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.netcontrol.cli.ImportChildBlockCLI
–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/ImportChildBlock.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
ImportChildBlock.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 child blocks from the newchildblocks.csv file, places into the
newchildblocks.reject file any records that could not be imported, and reports errors to the
importerrors.txt file.
importerrors.txt file.
$INCHOME/etc/cli/ImportChildBlock.sh –u joe –p joepwd –f newchildblocks.csv
–r newchildblocks.reject –e importerrors.txt
–r newchildblocks.reject –e importerrors.txt
File Format
Col
Field
Accepted Values
Required
A
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
Network Registrar IPAM/Texas/Dallas. Long format
eliminates ambiguity in cases where there are duplicate
container names.
container names.
Yes