Cisco Cisco Prime Network Registrar 8.1 Technical References

Page of 316
ModifyContainer 
Cisco Prime Network Registrar IPAM 8.1.1 CLI and API Guide 
     123 
ModifyContainer 
Overview 
The 
ModifyContainer
 CLI alters existing containers in the system. 
Usage 
Direct 
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.ipcontrol.cli.ModifyContainerCLI  
–u <adminId> -p <admin password> -f <import filename> [-r <rejects file>]  
[-e <error messages>] [-?] 
Via command script (Unix) from the $INCHOME/etc/cli directory 
ModifyContainer.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 
ModifyContainer.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 < filename> 
Yes 
The name of the CSV file describing the modifications.  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. 
-v 
No 
Produces verbose output. 
Output 
If successful, the CLI updates the containers per the input file and exits. 
Example 
$INCHOME/etc/cli/ModifyContainer.sh –u joe –p joepwd -f updatecontainers.txt  
-r updatecontainers.reject –e updatecontainers.err 
File Format 
The 
ModifyContainer
 CLI uses attribute-value pairs to specify the records and fields to 
be changed.  Each line in the input file uses an attribute-value pair to locate the container to 
be changed and a set of attribute-value pairs that specifies which attributes to modify. 
If an attribute is not included in the modifier set, then its value is not changed. 
The following table lists the available attributes for containers and also indicates which can 
be used to locate a record.