How can I create a Spectrum Global Collection for all models created in the last 48 hours

book

Article ID: 51739

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

How can I create a Spectrum Global Collection for all models created in the last 48 hours?

Environment

Release: Any
Component:

Resolution

The solution requires a SpectroWATCH to be created. The SpectroWATCH should be created on a suitable based model type (e.g. GnSNMPDev will affect all SNMP-based models).

Create a SpectroWATCH using the following parameters:

Data Type = Time Ticks

Expression = ( TIME - createtime )

Default Activation = Active By Default

Evaluation = Evaluate on Demand

Model Type = GnSNMPDev (NOTE: Ensure the 'Make Inheritable' option is checked)

 

The next step is to create the Global Collection Search Criteria:

In OneClick right-click on 'Global Collections' in the Navigation Pane's Explorer tab and select 'Create Collection'

Give the Collection a name and then select 'Search Options'

Select the 'Attribute' button and select the previously created SpectroWATCH from the listed attributes. Set the 'Comparison Type' to 'Less Than Or Equal To' and then set the 'Attribute Value' to 172800 (for 48 hours).

Set the search update interval as desired (default=24 hours)

NOTE: For 'Attribute Value': 86400 = 24 hours so to cover 48 hours simply double the value.

Additional Information

Please reference the "Watches" and "Global Collections" section of the documentation for more information.