Operating Environment Software Instruction Manual

Figure 4 Sample response from getAggregateServiceUsage API
Using the CLI to retrieve chargeback data
Matrix infrastructure orchestration includes a command line tool to retrieve chargeback usage data.
This tool generates an xml file containing chargeback data that can be opened in a browser or
using Microsoft Excel.
The chargeback.bat tool is found in the default location at C:\Program Files\HP\Matrix
infrastructure orchestration\chargeback\bin.
Table 8 Chargeback CLI commands
DescriptionOperation
Returns usage and cost data for selected services.
For daily infrastructure usage data, set the period.type flag to DAILY. To return
summarized infrastructure for a period, set the period.type flag to PERIOD. Server,
Disk and IP address data is consolidated per infrastructure.
get usage
Returns detailed usage and cost data for selected services.
For daily infrastructure usage data, set the period.type flag to DAILY. To return
summarized infrastructure for a period, set the period.type flag to PERIOD. Data
for each Server, Disk and IP address is shown in detail.
get detailedusage
Returns aggregated usage and cost values for selected services.
Returns one entry with consolidated data for the entire period.
get aggregatedusage
To use the CLI tool, perform the following steps.
1. On the CMS, open a command prompt and change directory (cd) to
<IO-installation-path>\chargeback\bin.
2. From a command prompt, enter the following:
chargeback <operation> [<general-options>] <operation-options>
Using the CLI to retrieve chargeback data 133