Технические ссылки для Cisco Cisco Prime Network Registrar 8.1
ExportDeviceResourceRecord
Cisco Prime Network Registrar IPAM 8.1.1 CLI and API Guide
63
Parameter
Required
Description
-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
Filter. 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.
-o <option>
No
To specify that the export output should be in the format used
by ImportDeviceResourceRecord, use
I. Use M for the
ModifyDeviceResourceRecord format. The default is
I.
-s <batch-size>
No
There can be a very large number of resource records exported
with this command. The default batch size for each call to the
web service is 1000 devices. If you receive the error, “
Exception
in thread "main" java.lang.OutOfMemoryError: Java heap space”, you
can use this parameter to specify a smaller batch size, for
example, -s 500. You can also edit the command file and
change the –Xmx parameter.
-v
No
Produces verbose output.
File Format
The format for the export file when “–o I” is specified is as follows.
Note: This is the same format that the
Note: This is the same format that the
ImportDeviceResourceRecord
CLI requires.
Col
Field
Accepted Values
A
Domain
The name of the domain to which the resource records belongs.
B
Domain Type
The name of the domain type to which the domain belongs.
Defaults to “Default”
C
Owner
The OWNER section of the resource record. Note that this section
is specific to the type of resource record. Refer to the appropriate
RFC for exact text that should be entered.
D
Host Name
The device host name.
E
IP Address
The IP Address of the Device.
F
Container
The name of the container that holds the device. This is required
only if there is overlapping address space in use and the ip address
is in overlapping space. The container is then used to uniquely
determine the device.
G
TTL
The Time To Live.
H
Class
The value currently supported is
IN. If not specified, defaults to
IN.
I
Resource Record Type
The type of resource record.
J
Data
The text for the DATA area of the resource record. Note that this
section is specific to the type of resource record. Refer to the
appropriate RFC for exact text that should be entered.
K
Comment
Text appended to the resource record.
The format for the export file when “–o M” is specified will be of the format that the
ModifyDeviceResourceRecord
CLI requires.