Top
Systemwalker Service Quality Coordinator Reference Guide
Systemwalker

1.9.2 sqcDeleteReport (Scheduled Report Deletion Command)

Function

This command is used to delete scheduled reports that are older than the number of days for which reports are to be stored. If this command is registered with the scheduler, it will delete scheduled reports automatically.

Privileges required for execution

The privileges of a user belonging to the "Administrators" group are required to execute this command.

Note

  • To execute this command under Windows Vista/Windows 7/Windows Server 2008 environment, execute with the administrator privilege. Select [Start] button of Windows, [All Programs], [Accessories], [Command prompt], and select [Run as administrator] of the right click menu, and then execute this command.

  • To execute this command by registering it with Task Scheduler for the Windows Vista/Windows 7/Windows Server 2008 environment, select the General tab of the Properties window for the task to be registered, and then select the Run with highest privileges checkbox.

Execution environment

This command can be run on an operation management client.


Syntax

<Installation directory>

\bin\sqcDeleteReport.exe

-c console_define -d retention_days -w retention_days -m retention_days

<installation directory>\bin\sqcDeleteReport.exe

-r tenant_name -d retention_days -w retention_days -m retention_days



Options

-c console_define

Specifies the console definition name for the report to be deleted. If a report is being deleted by specifying the console definition name, this parameter cannot be omitted.

This option can not be specified simultaneously with -r.


-d retention_days

Specifies the number of days (0 to 1500) to store daily reports. This parameter cannot be omitted.


-w retention_days

Specifies the number of days (0 to 1500) to store weekly reports. This parameter cannot be omitted.


-m retention_days

Specifies the number of days (0 to 1500) to store monthly reports. This parameter cannot be omitted.


-r tenant_name

If linking to ServerView Resource Orchestrator, specify the tenant name or L-Platform name of the report to be deleted. If a report is being deleted by specifying the tenant name or L-Platform name, this parameter cannot be omitted.

This option can not be specified simultaneously with -c.


Point

If the number of days to store reports is set to 0, no reports in the specified report format will be deleted.

Reports that were created more than XX days before the command was executed will be deleted (where "XX" is the number of retention days).

Return value

0: Normal termination

>0: Abnormal termination


Usage example 1

For scheduled reports in defaultConsole, the following example shows the options used to specify a daily report storage period of 10 days, a weekly report storage period of 60 days and a monthly report storage period of 365 days.

> sqcDeleteReport -c DefaultConsole -d 10 -w 60 -m 365


Usage example 2

For scheduled reports in tenant A, the following example shows the options used to specify a daily report storage period of 10 days, a weekly report storage period of 60 days and a monthly report storage period of 365 days.

> sqcDeleteReport -r tenentA -d 10 -w 60 -m 365