

Managing Network Storage Objects › Define a Query Service
Define a Query Service
This section describes how to create a query using the Service Builder Wizard. The Service Builder Wizard contains predefined sets of sample services. After completing the configuration steps, the service is ready to use. If you want to tailor a service, use the Query Service Builder Wizard to customize it.
The following example shows you how to query the database each week for the computers with the 15 biggest directories. To do this, follow these steps:
- Expand the CA SRM Object Tree, Open Systems, Services, Service Definitions, and then select Query, as shown in the following diagram:

The Query table opens.
- Click the Configuration menu and then New in the Query table. The Query Service Wizard opens. Expand Network Storage, Managed Computers, select Directories – Biggest, and then click Next:

- Enter 15 as the number of directories from which you want to collect data and click Next:

- Select Computers from the Selection Type drop-down list and check All Objects. Click Next:

- Select Execute periodically and enter 1 in the Every text box. Select Weeks from the drop-down list. Check the Retain Historical Data check box at the bottom of the dialog so that CA SRM can collect historical data. Select Hold to set the service with the HOLD timing condition.
Note: CA SRM uses historical data to calculate trend information.
- Select the file source. You can choose to scan the cache of the most recent data collection (usually nightly) or you can choose up to the minute information and scan the file system each time the query is run. Using the existing cache is more efficient. Next, select the cache location:

- The Summary dialog displays the parameters for the service that you have defined. If you want to make changes, click the Back button. If there are no changes, click Launch to name and then execute the service. Click Save to save the service without executing it. CA SRM runs the service according to the configuration shown in this dialog.
Note: If you make changes in the Advanced dialog, you will have to use it for all of your future changes. After you use the Advanced dialog for a service, you can no longer edit the service in the Service Builder Wizard.
- Enter a name for the service in the dialog. You can also provide an optional description. When you finish, click OK. The service executes or saves depending on what you selected in the previous dialog:

You can use the CA SRM Activity Monitor to check the progress of any service that you create. From the Open Systems menu, select Activity Monitor.
Copyright © 2016 CA Technologies.
All rights reserved.
 
|
|