Cisco Cisco Prime Network Registrar 8.1 Technical References

Page of 316
DeleteDevice 
Cisco Prime Network Registrar IPAM 8.1.1 CLI and API Guide 
     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>] [-?] 
Via command script (Unix) 
$INCHOME/etc/cli/DeleteDevice.sh –u <adminId> -p <admin password>  
[-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>] [-?] 
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. 
-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 
is part of that overlapping space.  In this case, the Container is required to uniquely 
determine the device. 
Col 
Field 
Accepted Values 
Required 
IP Address 
The IP Address of the Device 
Yes 
Address Type 
Ignored 
No 
Host Name 
Ignored 
No 
Device Type 
Ignored 
No 
Hardware Type 
Ignored 
No 
MAC Address 
Ignored 
No