Технические ссылки для Cisco Cisco Prime Network Registrar 8.1

Скачать
Страница из 316
ExportDeviceResourceRecord 
Cisco Prime Network Registrar IPAM 8.1.1 CLI and API Guide 
64 
For example, suppose a device at 10.0.0.24 has 4 resource records (that appear on the 
device’s Resource Record tab within the user interface). The set of attribute-value pairs 
before the colon identifies the record to be changed. The set following the colon specifies 
the values to be changed. All of the values that can be modified are exported. 
ipAddress=10.0.0.24,container=Cisco Prime Network Registrar 
IPAM/Texas/Dallas,owner=switch00026,domain=mycompany.com,domainType=Default,resourceRecTy
pe=A:owner=switch00026,resourceRecType=A,TTL=2400,data=10.0.0.24,domain=mycompany.com,dom
ainType=Default,comment= 
ipAddress=10.0.0.24,container=Cisco Prime Network Registrar 
IPAM/Texas/Dallas,owner=24.0.0,domain=10.in-addr.arpa,domainType=Default,resourceRecType=
PTR:owner=24.0.0,resourceRecType=PTR,TTL=2400,data=switch00026.mycompany.com,domain=10.in
-addr.arpa,domainType=Default,comment= 
ipAddress=10.0.0.24,container=Cisco Prime Network Registrar 
IPAM/Texas/Dallas,owner=switch00026,domain=mycompany.com,domainType=External,resourceRecT
ype=A:owner=switch00026,resourceRecType=A,TTL=2400,data=10.0.0.24,domain=mycompany.com,do
mainType=External,comment= 
ipAddress=10.0.0.24,container=Cisco Prime Network Registrar 
IPAM/Texas/Dallas,owner=24.0.0,domain=10.in-addr.arpa,domainType=External,resourceRecType
=PTR:owner=24.0.0,resourceRecType=PTR,TTL=2400,data=switch00026.mycompany.com,domain=10.i
n-addr.arpa,domainType=External,comment= 
Examples 
This example exports all device resource records (that appear on the device’s Resource 
Record tab within the user interface) for the device at 
10.0.0.24
, to a file named 
exportdevicerr.csv in the current directory. The output is formatted for the 
ImportDeviceResourceRecord
 CLI. 
$INCHOME/etc/ExportDeviceResourceRecord.sh –u joe –p joepwd –i 10.0.0.24  
–f exportdevicerr.csv  
This example exports all device resource records (that appear on the device’s Resource 
Record tab within the user interface) for the device with hostname
 switch00024
 to a file 
named 
exportdevicerr.csv in the current directory. The output is formatted for the 
ModifyDeviceResourceRecord
 CLI. 
$INCHOME/etc/ExportDeviceResourceRecord.sh –u joe –p joepwd –n switch00024 
–f exportdevicerr.csv –o M  
This example exports all device resource records (that appear on a device’s Resource 
Record tab within the user interface) for devices located in container 
Exton
 to a file named 
exportdevicerr.csv in the current directory. The output is formatted for the 
ModifyDeviceResourceRecord
 CLI. 
$INCHOME/etc/ExportDeviceResourceRecord.sh –u joe –p joepwd –c Exton exportdevicerr.csv  
–o M