Cisco Cisco Prime Network Registrar 8.0 Technical References
DeleteDevice
CLI and API Guide for Cisco Prime Network Registrar IPAM 8.0
Command Line Interfaces (CLI) 85
DeleteDevice
Overview
The
DeleteDevice
CLI allows the user to remove individual devices from the system.
This CLI allows you to specify a file containing a list of devices to delete.
Usage
Direct
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.ipcontrol.cli.DeleteDeviceCLI
–u <adminId> -p <admin password> [-f <import filename>] [-r <rejects file>]
[-e <error messages>] [-?]
–u <adminId> -p <admin password> [-f <import filename>] [-r <rejects file>]
[-e <error messages>] [-?]
Via command script (Unix)
$INCHOME/etc/cli/DeleteDevice.sh –u <adminId> -p <admin password>
[-f <import filename>] [-r <rejects file>] [-e <error messages>] [-?]
[-f <import filename>] [-r <rejects file>] [-e <error messages>] [-?]
Via command script (Windows) from the %INCHOME%/etc/cli directory
DeleteDevice.cmd –u <adminId> -p <admin password> [-f <import filename>]
[-r <rejects file>] [-e <error messages>] [-?]
[-r <rejects file>] [-e <error messages>] [-?]
Parameters
Parameter
Required
Description
-u <userId>
Yes
User Id
-p <pwd>
Yes
Password
-?
No
Print help
-f <import filename>
Yes
The name of the CSV file listing devices to be deleted. See below
for the required file format.
-r <rejects file>
No
The name of the file that rejected (non-deleted) records will be
placed in.
placed in.
-e <error messages>
No
The name of the file that error messages will be reported in.
File Format
By design, the input file format for
DeleteDevice
is the same as for
ImportDevice
.
This way, one can use the same file to the delete a set of devices and then re-add them
without copying data. In the simplest case, only the IP Address is required. The container
might also be required if overlapping address space is in use and the device is in a block that
might also be required if overlapping address space is in use and the device is in a block that
is part of that overlapping space. In this case, the Container is required to uniquely
determine the device.
determine the device.
Col
Field
Accepted Values
Required
A
IP Address
The IP Address of the Device
Yes
B
Address Type
Ignored
No
C
Host Name
Ignored
No
D
Device Type
Ignored
No
E
Hardware Type
Ignored
No
F
MAC Address
Ignored
No