Cisco Cisco Prime Network Registrar 8.1 テクニカルリファレンス

ページ / 316
DeleteNetService 
Cisco Prime Network Registrar IPAM 8.1.1 CLI and API Guide 
     97 
DeleteNetService 
Overview 
The 
DeleteNetService
 CLI enables the user to remove individual network services 
from the system. This CLI allows you to specify a file containing a list of network services 
to delete. 
Usage 
Direct 
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.netcontrol.cli.DeleteNetServiceCLI  
–u <adminId> -p <admin password> -f <import filename> [-r <rejects file>]  
[-e <error messages>] [-?] 
Via command script (Unix) 
$INCHOME/etc/cli/DeleteNetService.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 
DeleteNetService.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 of network services 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 services listed in the 
netservices.csv file, places into the 
netservices.reject file any records that could not be deleted, and reports errors to the 
deleteerrors.txt file. 
$INCHOME/etc/cli/DeleteNetService.sh –u joe –p joepwd –f netservices.csv  
–r netservices.reject –e deleteerrors.txt  
File Format 
By design, the input file format for 
DeleteNetService
 is the same as the format for 
ImportNetService
 and 
ExportNetService
.  This way, one can use the same file to 
delete a set of network services and then re-add them without copying data.  Specify the 
name and the type of the network service. If the type is not specified, it defaults to 
“DHCP”.