Cisco Cisco Prime Network Registrar 8.1 Technical References
ExportContainer
Cisco Prime Network Registrar IPAM 8.1.1 CLI and API Guide
58
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
–n and –d are specified, the export includes containers that satisfy
both
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.