beautypg.com

HP Matrix Operating Environment Software User Manual

Page 141

background image

Table 8 Chargeback CLI commands

Description

Operation

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
\chargeback\bin

.

2.

From a command prompt, enter the following:

chargeback []

(Enter chargeback --help to see information about the options.)

For example, to see allocation usage data for April 23 with the results sent to output.xml,
enter:

chargeback get usage -S 4/23/2012 -E 4/23/2012 -o output

3.

From Windows Explorer, navigate to
\chargeback\bin\reports

, where the output.xml file is

located.

4.

To view the results, do one of the following:
a.

Drag output.xml to your browser's URL bar to view the file in your browser.

b.

Run Microsoft Excel, and open output.xml.

Using the CLI to retrieve chargeback data

141