Cisco Cisco Prime Network Registrar 8.1 Technical References
DeleteTask
Cisco Prime Network Registrar IPAM 8.1.1 CLI and API Guide
99
DeleteTask
Overview
The
DeleteTask
CLI allows the user to delete tasks from the system.
Usage
Direct
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.ipcontrol.cli.DeleteTaskCLI
–u <adminId> -p <admin password> [-t <idlist> | –r <retain> | -d <date>] [-v] [-?]
–u <adminId> -p <admin password> [-t <idlist> | –r <retain> | -d <date>] [-v] [-?]
Via command script (Unix)
$INCHOME/etc/cli/DeleteTask.sh –u <adminId> -p <admin password>
[-t <idlist> |–r <retain> | -d <date>] [-v] [-?]
[-t <idlist> |–r <retain> | -d <date>] [-v] [-?]
Via command script (Windows) from the %INCHOME%/etc/cli directory
DeleteTask.cmd –u <adminId> -p <admin password>
[-t “<idlist>” | –r <retain> | -d <date>] [-v] [-?]
[-t “<idlist>” | –r <retain> | -d <date>] [-v] [-?]
Parameters
Parameter
Required
Description
-u <userId>
Yes
User Id
-p <pwd>
Yes
Password
-?
No
Print help
-t <idlist>
One of –t, -r, or
–d must be
specified.
One or more task IDs to delete. Multiple tasks are separated by
commas with no spaces. In Windows, enclose a list of tasks in quotes,
for example, -t “123,456”.
-r <retain>
One of –t, -r, or
–d must be
specified.
The number of days of tasks to retain. For example, if –r 30 is
specified, tasks older than 30 days will be deleted.
-d <date>
One of –t, -r, or
–d must be
specified.
Tasks older than this date will be deleted, in the format yyyy/mm/dd.
For example, for a date of 2005/12/31, all tasks prior to that date will
be deleted.
-v
No
Verbose option. The CLI will print out more information about the
request. In particular, it will print how many tasks were deleted.
Example
This example deletes tasks older than 60 days.
$INCHOME/etc/cli/DeleteTask.sh –u joe –p joepwd –r 60 -v
File Format
None. This CLI uses command line arguments only.