Cisco Cisco Prime Network Registrar 8.1 Technical References
ImportAggregateBlock
Cisco Prime Network Registrar IPAM 8.1.1 CLI and API Guide
8
ImportAggregateBlock
Overview
The
ImportAggregateBlock
CLI allows the user to insert an intermediate level
Aggregate block between existing blocks in the block hierarchy. By specifying a parent
block, target block and a container, Cisco Prime Network Registrar IPAM will validate and
insert the desired aggregate block. It will also adjust the parent block assignments of any
would-be child blocks.
Usage
Direct
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.netcontrol.cli.ImportAggregateBlockCLI
–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/ImportAggregateBlock.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
ImportAggregateBlock.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 aggregate blocks from the
newaggblocks.csv file, places into the
newaggblocks.reject file any records that could not be imported, and reports errors to the
importerrors.txt file.
$INCHOME/etc/cli/ImportAggregateBlock.sh –u joe –p joepwd –f newaggblocks.csv
–r newaggblocks.reject –e importerrors.txt
–r newaggblocks.reject –e importerrors.txt