HP Matrix Operating Environment Chargeback
Technical white paper | HP Matrix Operating Environment Chargeback
5
Use the following commands to obtain more information about chargeback archive operations:
chargeback archive databaseexport –help
chargeback archive databasedelete –help
chargeback archive executionhistory –help
Getting usage data
Following is an example of using the CLI operation “get usage” to retrieve summary usage data for each day in the reporting
period.
Figure 3. Chargeback CLI command to retrieve summary usage data
C:\Program Files\HP\Matrix infrastructure orchestration\chargeback\bin>chargeback.bat get
usage -u YOURUSERNAME -w YOURPASSWORD -S 04/7/2014 -E 04/8/2014 -f "service_name equal
intranet_service" -o 2day_summary.xml
Figure 4. Summary daily usage data XML
<?xml version="1.0" encoding="UTF-8"?>
<GetServiceUsage>
<ServiceUsageSummary>
<date>2014-04-07</date>
<resourceUsageSummary>
<DiskUsageSummary>
<allocationCost>0.0000</allocationCost>
<allocationHours>70.4325</allocationHours>
<disksCount>3</disksCount>
<disksSizeGB>30.0000</disksSizeGB>
</DiskUsageSummary>
<fixedCost>0.0000</fixedCost>
<IpAddressUsageSummary>
<allocationCost>0.0000</allocationCost>
<allocationHours>23.4775</allocationHours>
<ipAddressCount>1</ipAddressCount>
</IpAddressUsageSummary>
<ServerUsageSummary>
<allocationCost>0.0000</allocationCost>
<allocationHours>23.4775</allocationHours>
<serversCount>1</serversCount>
<uptimeHours>23.4775</uptimeHours>
</ServerUsageSummary>
</resourceUsageSummary>
<serviceInformation>
<billingCode>
</billingCode>
<id>InfrastructureService:78054e0a-249b-4af4-bbe0-ae4a32bb664a</id>
<name>HPCS_2d</name>
<organizationId>SERVICEPROVIDER</organizationId>
<owner>CMS2\Administrator</owner>
<startDate>2014-02-20</startDate>
</serviceInformation>
</ServiceUsageSummary>
<ServiceUsageSummary>
<date>2014-04-08</date>
...
</serviceInformation>
</ServiceUsageSummary>
</GetServiceUsage>