HP Matrix Operating Environment 7.3 and 7.3 Update 1 Infrastructure Orchestration User Guide

cost frequency value must be specified for the existing services. This can be done by running the
modify service command from the Matrix OE CLI. For more information about this command,
enter ioexec modify service help on the command line on a Matrix OE 7.3 or 7.3.1
CMS.
After an upgrade to 7.3 or 7.3.1, server costs are updated to reflect the server cost assignment.
Existing total cost is assigned to base cost, and CPU unit cost and memory unit cost are assigned
to 0. This is a model in which, independent of the number of the CPU and memory, the cost for
that server is fixed.
Using the CLI to retrieve chargeback data
NOTE: API extensions are also available. For more information, see the HP CloudSystem
Matrix/Matrix Operating Environment Integration Interfaces API and CLI Operations Reference
Guide available on the following website:
http://www.hp.com/go/matrixoe/docs
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>
(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/2013 -E 4/23/2013 -o output
3. From Windows Explorer, navigate to
<IO-installation-path>\chargeback\bin\reports, where the output.xml file is
located.
Using the CLI to retrieve chargeback data 161