HP Matrix Operating Environment Chargeback

Technical white paper | HP Matrix Operating Environment Chargeback
6
Getting aggregated usage data
An example of using the CLI operation “get aggregatedusage” to retrieve summary usage data, aggregated for all days in
the reporting period.
Figure 5. Chargeback CLI command to retrieve aggregated summary usage data
C:\Program Files\HP\Matrix infrastructure orchestration\chargeback\bin>chargeback.bat get
aggregatedusage -u YOURUSERNAME -w YOURPASSWORD -S 04/7/2014 -E 04/8/2014 -f "service_name
equal intranet_service" -o 2day_summary.xml
Figure 6. Aggregated summary data XML
<?xml version="1.0" encoding="UTF-8"?>
<GetAggregateServiceUsage>
<AggregateServiceUsage>
<resourceUsageSummary>
<DiskUsageSummary>
<allocationCost>0.0000</allocationCost>
<allocationHours>572.9784</allocationHours>
<disksCount>3</disksCount>
<disksSizeGB>240.0000</disksSizeGB>
</DiskUsageSummary>
<fixedCost>0.0000</fixedCost>
<IpAddressUsageSummary>
<allocationCost>0.0000</allocationCost>
<allocationHours>190.9928</allocationHours>
<ipAddressCount>1</ipAddressCount>
</IpAddressUsageSummary>
<ServerUsageSummary>
<allocationCost>0.0000</allocationCost>
<allocationHours>190.9928</allocationHours>
<serversCount>1</serversCount>
<uptimeHours>190.9928</uptimeHours>
</ServerUsageSummary>
</resourceUsageSummary>
<servicesCount>1</servicesCount>
<totalCost>0.0000</totalCost>
</AggregateServiceUsage>
</GetAggregateServiceUsage>
Getting detailed service usage data
An example of using the CLI operation “get detailedusage” to retrieve detailed service data is shown below.
Figure 7. Chargeback CLI command to retrieve detailed service usage data
C:\Program Files\HP\Matrix infrastructure orchestration\chargeback\bin>chargeback.bat get
detailedusage -u YOURUSERNAME -w YOURPASSWORD -S 04/13/2014 -E 04/14/2014 -f "service_name
equal intranet_service" -o report_for_2days.xml
Operation was performed successfully. File generated at: C:\Program Files\HP\Matrix
infrastructure orchestration\chargeback\bin\reports\report_for_2days.xml
In this example, details of the service named “intranet_service” are retrieved for the period of 4/13 to 4/14.
The result file contains detailed allocation data for the services and its servers, disks, and IPs. A fragment of the
report_for_2days.xml” file is shown in Figure 4. Note this version is summarized for presentation: