beautypg.com

HP Systems Insight Manager User Manual

Page 52

background image

Example - Creating a task to delete all cleared events

The following example describes how to create a task to delete all cleared server events from the Systems
Insight Manager database. This task is useful to include in your management portfolio because deleting
cleared events on a regular basis empties the database of unnecessary entries and improves system
performance.

The following task has the following segments:

Creating an event collection that contains the events you want to delete

Creating and scheduling the task to delete all cleared server events and run the task

Procedure 13-3 Creating a task to delete all cleared events

1.

In the Search panel, click Advanced Search. The Advanced Search page appears.

2.

Select events from the Search for dropdown list.

3.

From the first selection box (

criteria

selection), click the down arrow, and then select cleared state.

4.

From the second selection box (comparison selection), click the down arrow, and then select is.

5.

In the third selection box (value selection), select cleared.

6.

Click Add to add the system type criteria.

7.

From the first selection box (

criteria

selection), click the down arrow, and then select system type.

8.

From the second selection box (comparison selection), click the down arrow, and then select is.

9.

In the third selection box (value selection), the available values for a given criteria or comparison
combination are given. Select server.

10. (Optional) Click View to view the search results.
11. Click Save As Collection to save the event collection.
12. In the Name field, enter a name for the collection, such as Delete Cleared Server Events.
13. Under Place in Folder, select to save the collection in Events by Severity to have it available to other

users.

14. Click OK to save the collection.
15. To create and schedule the task, select Options

EventsDelete Events. The Delete Events page

appears.

16. Select the Delete Cleared Server Events collection. Select Select "Delete Cleared Server Events"

itself

.

17. Click Apply.
18. Click Schedule.
19. In the Task name box, give the task a name, such as Delete Cleared Server Events.
20. In the Refine schedule section, select the scheduling option that you prefer.

In this example, if you select When new systems or events are added to the collection, then Systems
Insight Manager automatically deletes server events whenever they become cleared.

21. Click Done. The task is now scheduled, and the All Scheduled Tasks page appears.

To run this task at any time, select Tasks & Logs

View Task Results. Then select Delete Cleared

Server Events

from the table, and then click Run Now.

52

Event management