HP Matrix Operating Environment Chargeback

Technical white paper | HP Matrix Operating Environment Chargeback
4
Accessing the source data
Command-line Tool
The XML data containing usage and cost metrics can be generated by executing chargeback command-line interface (CLI)
commands. The CLI tool, chargeback\chargeback.bat, allows users to restrict the search using parameters such as
start date, end date, and filters such as service name, billing code, service owner, and organization. The following CLI
reporting commands are available:
get usage
Returns summary usage and cost data for the specified service(s) for each day in the
reporting period.
get aggregatedusage
Returns aggregated usage and cost data for the specified service(s) over the reporting
period.
get detailedusage
Returns detailed usage and cost data for the specified service(s), resulting in usage data
for each day in the reporting period.
archive databaseexport
Used by administrators to export a range of data to a file.
archive databasedelete
Used by administrators to delete a range of data from the database.
archive
executionhistory
Lists the execution history and completion status for the preceding archive operations.
C:\Program Files\HP\Matrix infrastructure orchestration\chargeback\bin>chargeback.bat
Usage:
chargeback <operation> [<general-options>] <operation-options>
Executes the specified chargeback operation
The "get" operations generate
an xml file with chargeback data for the
specified options
The "archive" operations execute
archiving related tasks
<operation> --help
Prints help for a particular chargeback operation
and its operation-options
chargeback --help Prints this help message
chargeback --defaults Prints environment-specific default values for the
general options
An operation is specified by a keyword pair. Recognized operations are:
get usage
get detailedusage
get aggregatedusage
archive databaseexport
archive databasedelete
archive executionhistory
General Options:
-h, --host The target chargeback server (defaults to "localhost").
<host>
-u, --user The name of the user performing the operation (including
<user-name> domain, if necessary). Defaults to the name of the local
system user.
-w, --password A password used to authenticate the user. A prompt is
<password> given when no password is provided.
-t, --timeout The number of seconds to wait for an operation response
<timeout-seconds> before timing out. A value of 0 specifies an indefinite
wait.
For a complete definition and description of the CLI interface, see the HP CloudSystem Matrix/Matrix Operating Environment
Interfaces API and CLI Operations Reference Guide at www.hp.com/go/matrixoe/docs.