Cisco Cisco Prime Network Registrar 8.1 Technical References

Page of 316
ModifyAddrpool 
Cisco Prime Network Registrar IPAM 8.1.1 CLI and API Guide 
     115 
ModifyAddrpool 
Overview 
The 
ModifyAddrpool
 CLI alters existing address pools in the system. 
Usage 
Direct 
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.netcontrol.cli.ModifyAddrpoolCLI  
–u <adminId> -p <admin password> -f <import filename> [-r <rejects file>] [-e <error 
messages>] [-?] 
Via command script (Unix) from the $INCHOME/etc/cli directory 
ModifyAddrpool.sh –u <adminId> -p <admin password> -f <update filename>  
[-r <rejects file>] [-e <error messages>] [-?] 
Via command script (Windows) from the %INCHOME%/etc/cli directory 
ModifyAddrpool.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 records will be placed in. 
-e <error messages> 
No 
The name of the file that error messages will be reported in. 
Output 
If successful, the CLI updates the address pools per the input file and exits. 
Example 
$INCHOME/etc/cli/ModifyAddresspool.sh –u joe –p joepwd -f updateaddrpools.txt  
-r updateaddrpools.reject –e updateaddrpool.err 
File Format 
The 
ModifyAddrpool
 CLI uses attribute-value pairs to specify the records and fields to 
be changed.  Each line in the input file must have a set of attribute-value pairs to locate the 
address pool to be changed and a second set specifies what fields to change and their new 
values. 
The following table lists the available attributes for address pools and also indicates which 
can be used to locate a record.