Extracting Resource Allocation Data for Chargeback in a HP Virtual Server Environment for HP Integrity Servers
The hpvmstatus command runs on a specific Integrity VM Host server and shows the summary 
properties of the virtual machines on that server. In the following example, the –r flag specifically 
shows the vCPUs and entitlement values: 
HPVM HOST # hpvmstatus -r 
[Virtual Machine Resource Entitlement] 
[Virtual CPU entitlement] 
 Percent 
Cumulative 
Virtual Machine Name VM # #VCPUs Entitlement Maximum Usage 
Usage 
==================== ===== ====== =========== ======= ======= 
================ 
vmlin1 1 1 80.0% 100.0% 0.3% 
1743854 
vmhpux1 2 4 40.0% 100.0% 1.3% 
127576469 
vmhpux2 3 4 40.0% 100.0% 3.0% 
45138177 
vmwin1 4 2 40.0% 100.0% 0.6% 
3052306 
va01sv # 
The following script converts the virtual machine entitlement and vCPU values to an aggregate amount 
of guaranteed physical core processing: 
HPVM HOST # cat wkldguarhpvm.sh 
hpvmstatus -r | \ 
awk '{ if (NR >5) printf "%s %2.2f\n",$1,$3*($4/100)}' 
HPVM HOST # 
This script produces the following output: 
HPVM HOST # ./wkldguarhpvm.sh 
vmlin1 0.80 
vmhpux1 1.60 
vmhpux2 1.60 
vmwin1 0.80 
HPVM HOST # 
To run this command from the CMS command line on remote Integrity VM systems that are not 
managed by gWLM, you can use the HP SIM custom tool and mxexec commands. 
33 










