HP Matrix Operating Environment Chargeback
Technical white paper 
HP Matrix Operating Environment 
Chargeback 
Creating customized reports based on CLI output files 
Table of contents 
Introduction .................................................................................................................................................................................... 2 
Chargeback usage report ............................................................................................................................................................ 2 
Accessing the source data ........................................................................................................................................................... 4 
Command-line Tool .................................................................................................................................................................. 4 
API................................................................................................................................................................................................. 8 
Understanding the chargeback output data ........................................................................................................................... 8 
“get detailedusage” XML elements ....................................................................................................................................... 8 
List of service allocation data ................................................................................................................................................. 9 
Service information ................................................................................................................................................................ 10 
Resource usage detail ............................................................................................................................................................ 10 
Creating formatted reports ....................................................................................................................................................... 12 
Learning the basic XSLT elements ...................................................................................................................................... 12 
Creating a sample formatter ................................................................................................................................................ 13 
Creating a report to show only service name, date, and service fixed cost ............................................................... 14 
Adding attributes to an existing report .............................................................................................................................. 14 
Creating a report to show all detailed service allocation metrics per day ................................................................. 15 
Applying the formatter to the source data ............................................................................................................................ 17 
Adding stylesheet tag to the source XML file ................................................................................................................... 17 
Opening the XML as a report in Microsoft Excel 2007 .................................................................................................... 17 
Opening the XML as a report in Internet Explorer ........................................................................................................... 18 
For more information ................................................................................................................................................................. 20 










