Cisco Cisco Prime Network Registrar 8.0 Technical References
ExportDevice
60 CLI and API Guide for Cisco Prime Network Registrar IPAM 8.0
ExportDevice
Overview
The
ExportDevice
CLI exports a list of all the Devices into a specified file. This file can
be modified and then imported using the
ImportDevice
CLI.
Usage
Direct
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.ipcontrol.cli.ExportDeviceCLI
–u <adminId> -p <admin password> -f <export filename> [-i ipaddress] [-n deviceName]
[-d udfName=value] [-m domainName] [-r ipaddress1/ipaddress2] [-e devicetype]
[-b blockName] [-c containerName] [-t blocktype] [-?] [-v]
–u <adminId> -p <admin password> -f <export filename> [-i ipaddress] [-n deviceName]
[-d udfName=value] [-m domainName] [-r ipaddress1/ipaddress2] [-e devicetype]
[-b blockName] [-c containerName] [-t blocktype] [-?] [-v]
Via command script (Unix)
$INCHOME/etc/ExportDevice.sh –u <adminId> -p <admin password> -f <export filename>
[-i ipaddress] [-n deviceName] [-d udfName=value] [-m domainName]
[-r ipaddress1/ipaddress2] [-e devicetype] [-b blockName] [-c containerName]
[-t blocktype] [-?] [-v]
[-i ipaddress] [-n deviceName] [-d udfName=value] [-m domainName]
[-r ipaddress1/ipaddress2] [-e devicetype] [-b blockName] [-c containerName]
[-t blocktype] [-?] [-v]
Via command script (Windows) from the %INCHOME%/etc/cli directory
ExportDevice.cmd –u <adminId> -p <admin password> -f <export filename> [-i ipaddress]
[-n deviceName] [-d udfName=value] [-m domainName] [-r ipaddress1/ipaddress2]
[-e devicetype] [-b blockName] [-c containerName] [-t blocktype] [-?] [-v]
[-n deviceName] [-d udfName=value] [-m domainName] [-r ipaddress1/ipaddress2]
[-e devicetype] [-b blockName] [-c containerName] [-t blocktype] [-?] [-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 no file name is
specified, results are outputted to the screen.
-c [containerName]
No
Filter. Allows you to filter export based on the name of the
container the device is located in.
-d [udfName=value]
No
Filter. Allows you to filter export based on the user defined name
and value of the device. For wildcarding, use a “*” character within
“double quotes”, i.e., –d “udfName=value*”. Also surround the
parameter with double quotes if there is an embedded blank in the
parameter with double quotes if there is an embedded blank in the
filter string.
-e [devicetype]
No
Filter. Allows you to filter export based the user device type name.
-i [ipaddress]
No
Filter. Allows you to filter export based the ipaddress.
-m [domain]
No
Filter. Allows you to filter export based the domain name.
-n [name]
No
Filter. Allows you to filter export based on the device hostname.
-r [ipaddress1/ipaddress2] No
Filter. Allows you to filter export based on an address range
between ipaddress1 and ipaddress2 inclusive.
-t [blocktype]
No
Filter. Allows you to filter export based on block type name.
-b [blockName]
No
Filer. Allows you to filter export based on block name.
-h
No
Filter. Must be accompanied with –c parameter. Specifies to recursively
include all devices contained in child containers of specified –c
parameter filter.