Execution environment
This command can be run on an operation management client.
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 Server 2008/Windows Vista and later, execute with the administrator privilege.
For Windows Server 2012/Windows 8
Right-click the Start menu (located at the bottom-left corner of the Desktop) and select Command Prompt (Admin). Run the command from the Command Prompt.
For Windows Server 2008/Windows 7/Windows Vista
From the Start menu, select All Programs - Accessories, then right-click Command Prompt, and select Run as administrator. Run the command from the Command Prompt.
To execute this command by registering it with Task Scheduler for the Windows Server 2008/Windows Vista and later, select the General tab of the Properties window for the task to be registered, and then select the Run with highest privileges checkbox.
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.
Syntax
sqcDeleteReport -c console_define -d retention_days -w retention_days -m retention_days |
Options
Specifies the console definition name for the report to be deleted. This parameter cannot be omitted.
Specifies the number of days (0 to 1500) to store daily reports.
Specifies the number of days (0 to 1500) to store weekly reports.
Specifies the number of days (0 to 1500) to store monthly reports.
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).
Usage example
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 |