Cisco Cisco Prime Network Registrar 8.1 Technical References

Page of 316
DeleteNetElement 
Cisco Prime Network Registrar IPAM 8.1.1 CLI and API Guide 
     93 
DeleteNetElement 
Overview 
The 
DeleteNetElement
 CLI enables the user to remove individual network elements 
from the system. This CLI allows you to specify a file containing a list of network elements 
to delete. 
Usage 
Direct 
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.netcontrol.cli.DeleteNetElementCLI  
–u <adminId> -p <admin password> -f <import filename> [-r <rejects file>]  
[-e <error messages>] [-?] 
Via command script (Unix) 
$INCHOME/etc/cli/DeleteNetElement.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 
DeleteNetElement.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 listing network elements 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. 
Example 
This example deletes network elements listed in the 
netelements.csv file, places into the 
netelements.reject file any records that could not be deleted, and reports errors to the 
deleteerrors.txt file. 
$INCHOME/etc/cli/DeleteNetElement.sh –u joe –p joepwd –f netelements.csv  
–r netelements.reject –e deleteerrors.txt  
File Format 
By design, the input file format for 
DeleteNetElement
 is the same as the format for 
ImportNetElement
 and 
ExportNetElement
.  This way, one can use the same file to 
delete a set of network elements and then re-add them without copying data.  Specify the 
name or the IP address of the network element. If the IP address is not unique, the name 
must be specified.