Extracting Resource Allocation Data for Chargeback in a HP Virtual Server Environment for HP Integrity Servers

CLI: mxquery and mxreport commands
CPU Cores
For noncomplex physical servers, the mxreport command produces a report that shows the number
of CPU cores. The “CPU – Servers” query lists all CPU cores for all noncomplex servers with one
line of output per CPU core. For example:
CMS # mxreport -e "CPU - Servers" -x CSV | more
CPU - Servers
Associated systems: All Servers
Report date and time: Monday, October 1, 2007 5:25:56 PM EDT
CPU
"System Name","CPU Type","CPU Speed (MHz)","Slot Number"
"va00np00","Intel(R) Itanium(R) 2 Processor","1500","3"
"va00np00","Intel(R) Itanium(R) 2 Processor","1500","1"
"va00np00","Intel(R) Itanium(R) 2 Processor","1500","2"
"va00np00","Intel(R) Itanium(R) 2 Processor","1500","0"
...
CMS #
A simple filter can show the exact number of cores for a specific noncomplex server. The following
example obtains the number of cores for a server named va02cm:
CMS # mxreport -e "CPU - Servers" -x CSV | grep va02cm | wc -l
2
CMS #
Obtaining the number of CPU cores for a complex is more complex. The CPU core count is stored in
HP SIM for each partition of the complex, not as a single value for the complex as a whole. The
following three commands can be used:
mxquery –e “All nPartition Servers”: Lists all complexes. DeviceName is the
name of the complex. For example:
CMS # mxquery -e "All nPartition Servers" | more
NoticeID: 226
HWStatus: 0
MPStatus: 0
SWStatus: 0
47