13.11 DeleteExpiredReports

Use this Knowledge Script to delete expired reports generated by an AppManager report agent. If you have configured more than one report agent to generate reports to the same location, run this script on one of the report agents to delete all expired reports.

13.11.1 Resource Object

Report agent

13.11.2 Default Schedule

The default interval for this script is Run once.

You can set the schedule to periodically check for expired reports.

13.11.3 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Raise event if report successfully deleted?

Set to y to raise an event if expired reports are deleted. The default is y.

Generate deletion report?

Set to y to generate a report detailing which reports were deleted. The default is y.

Include parameter table?

Set to y to include a table in the report that lists parameter settings for the Report script. The default is y.

Select output folder

Set parameters for the output folder. The default folder name is DeleteExpRpts.

Add job ID to output folder name?

Set to y to append the job ID to the name of the output folder. The default is n.

The job ID helps you correlate a specific instance of a Report script with the corresponding report.

Select properties

Provide a name for the report and set any other report parameters. The default report name is Expired Reports Deleted.

Add timestamp to title?

Set to y to append a timestamp to the title of the report, making each title unique. The default is n.

A timestamp allows you to run consecutive iterations of the same report without overwriting previous output.

Event severity when report successfully generated

Set the event severity level, from 1 to 40, to indicate the importance of the event. The default is 35 (magenta level indicator).

Event severity when report has no data

Set the event severity level, from 1 to 40, to indicate the importance of the event. The default is 25 (blue level indicator).

Event severity when report generation fails

Set the event severity level, from 1 to 40, to indicate the importance of the event. The default is 5 (red level indicator).