Cisco Cisco Prime Network Registrar 8.0 Technical References
![Cisco](https://files.manualsbrain.com/attachments/7380d0050044647c30f5c24bbbf5d0c0b6d9bb84/common/fit/150/50/faa183d287233c52228cfea3dbc2a127fe780f60564fcb0955d9c3d1cd23/brand_logo.png)
DeleteDeviceInterface
CLI and API Guide for Cisco Prime Network Registrar IPAM 8.0
Command Line Interfaces (CLI) 87
DeleteDeviceInterface
Overview
The
DeleteDeviceInterface
CLI allows the user to remove device interfaces from
devices in the system. This CLI enables you to specify a file containing a list of device
interfaces to delete.
Usage
Direct
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.ipcontrol.cli.DeleteDeviceInterfaceCLI
–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/DeleteDeviceInterface.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
DeleteDeviceInterface.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 device interfaces 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.
Usage Examples
This example deletes the device interfaces listed in the file deviceInterfaces.txt.
$INCHOME/etc/cli/DeleteDeviceInterface.sh –u joe –p joepwd –f deviceInterfaces.txt
File Format
The input file format for
DeleteDeviceInterface
is the same as for
ExportDevice
.
The device is identified by its IP Address. The container must also be specified if the
device‟s IP Address is not unique due to overlapping address space. The interface is
device‟s IP Address is not unique due to overlapping address space. The interface is
identified by its name. Multiple interfaces to be deleted can be specified.
Col
Field
Accepted Values
Required
A
IP Address
The IP address of the device. If multiple
interfaces are to be deleted, you may
specify their IP addresses delimited by „|‟
(as output by ExportDevice), but only one
IP Address is required to identify the
IP Address is required to identify the
device.
Yes