Previous Topic: Executing CA SRM Services from a Command PromptNext Topic: Troubleshooting


Chargeback Query

Use the chargeback query in conjunction with the Unicenter Service Accounting. This function enables you to create reports that help you relate the storage resources to their cost through the observation of consumption patterns. You need to have Unicenter Service Accounting r11.1 installed, and you also need to define a BrightStor metric to utilize the CA SRM data produced by this query. The XML file exported by CA SRM needs to match the XSL file that is shipped with Unicenter Service Delivery’s xmlAgent. A BrightStor metric named BrightStor Total File Usage is included with Unicenter Service Accounting.

See the Unicenter Service Accounting documentation on how to define a metric.

To create the query in CA SRM, follow these steps.

  1. Access the Query service from the Open Systems file menu by selecting Create Services and then Query. You can also access the service from the Query table.
  2. Select the application you want to create a chargeback report for and then select a template:

    chargeback

  3. Select a selection type and then select the specific objects you want to query:

    chargeback_

  4. Select the execution frequency. The service can operate:

    Hold—This option keeps the service available but the service does not run. It remains on hold until you change the option to one of the frequencies listed above. You can use the Hold option for situations where you want to kickoff this service from outside of CA SRM using the command line option. Hold is not available for every service.chargeback_freq

  5. Enter the xmlAgent path. The query creates the chargeback XML file here:

    chargeback_

    If CA SRM finds Unicenter Service Accounting on the local machine, CA SRM provides a default directory.

  6. 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.
  7. Enter a name for the query in this 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.

The query creates a file name that looks like this: BS_Chargebackxx.xml. The xx is the object name. So in the preceding example the file name generated by the query is BS_ChargebackOracleDatafiles.xml.