Cisco Cisco Prime Network Registrar 8.0 Technical References
![Cisco](https://files.manualsbrain.com/attachments/7380d0050044647c30f5c24bbbf5d0c0b6d9bb84/common/fit/150/50/faa183d287233c52228cfea3dbc2a127fe780f60564fcb0955d9c3d1cd23/brand_logo.png)
ExportContainer
58 CLI and API Guide for Cisco Prime Network Registrar IPAM 8.0
ExportContainer
Overview
The
ExportContainer
CLI exports containers into a specified file. This file can be
modified and then imported using the
ImportContainer
CLI.
Usage
Direct
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.ipcontrol.cli.ExportContainerCLI
–u <adminId> -p <admin password> -f <export filename> [-n containerName]
[-d udfName=value] [-fp] [-?] [-v]
–u <adminId> -p <admin password> -f <export filename> [-n containerName]
[-d udfName=value] [-fp] [-?] [-v]
Via command script (Unix)
$INCHOME/etc/ExportContainer.sh –u <adminId> -p <admin password> -f <export filename>
[-i ipaddress] [-n containerName] [-d udfName=value] [-fp] [-?] [-v]
[-i ipaddress] [-n containerName] [-d udfName=value] [-fp] [-?] [-v]
Via command script (Windows) from the %INCHOME%/etc/cli directory
ExportContainer.cmd –u <adminId> -p <admin password> -f <export filename>
[-n containerName] [-d udfName=value] [-fp] [-?] [-v]
[-n containerName] [-d udfName=value] [-fp] [-?] [-v]
Parameters
Parameter
Required
Description
-u <userId>
Yes
User Id
-p <pwd>
Yes
Password
-?
No
Print help
-f <export filename>
No
The name of the file to export the data to. If omitted, results are sent to
the screen.
-n [containerName]
No
Filter. Allows you to filter export based on the name of the container.
Use a “*” character (within „single quotes‟, i.e., –n „ContainerName*‟)
for wildcarding. NOTE: if both –n and –d are specified, the export
includes containers that satisfy both criteria.
-d [udfName=value]
No
Filter. Allows you to filter export based the user defined field name and
value. Only containers that have this UDF set to this value will be
exported. For wildcarding, use a “*” character within “double quotes”,
i.e., –d “udfName=value*”. Also surround the parameter with single
quotes if there is an embedded blank in the filter string. NOTE: if both
quotes if there is an embedded blank in the filter string. NOTE: if both
–n and –d are specified, the export includes containers that satisfy both
criteria.
criteria.
-fp
No
Populates the parent container field using the long format, for example:
Cisco Prime Network Registrar IPAM/Texas/Dallas
-v
No
Produces verbose output.
File Format
The format for the export file is as follows.
Note: This is the same format that the
Note: This is the same format that the
ImportContainer
CLI requires.
Col
Field
Accepted Values
Col
Field
Accepted Values
A
Container Name
The name of the container.