Extracting Resource Allocation Data for Chargeback in a HP Virtual Server Environment for HP Integrity Servers
All c-Class Racks
All HP Integrity VM Guests
All nPartitions
All Virtual Partitions
Events older than 90 days
…
CMS #
From a HP SIM perspective, the All Systems output can encompass many different types of devices
that HP SIM can reach on the network. Therefore, HP SIM might return many entries that do not relate
to VSE servers. Similarly, HP SIM’s multiplatform support means that All Servers might return more
than just the VSE managed physical servers that are of interest.
To find physical servers that are complexes, add the “All nPartition Servers” query and the
–e flag to the mxquery command. For example:
CMS # mxquery -e "All nPartition Servers"
NoticeID: 226
HWStatus: 0
MPStatus: 0
SWStatus: 0
hp.sim.aggr.alerts: 16
DeviceName: va00-cplx_USE4452HL6
DeviceType: 19
DeviceAddress:
ProductName:
…
CMS #
To display just the complex names, use the following simple filter:
CMS # cat listcmplx.sh
mxquery -e "All nPartition Servers" | grep "^DeviceName" | awk
'{printf "%s Complex\n",$2}'
CMS #
This filter produces the following output:
CMS # ./listcmplx.sh
va00-cplx_USE4452HL6 Complex
…
CMS #
To display noncomplex HP 9000 and HP Integrity servers, you must create a new query using “All
Standalone Servers” as a template. The mxquery –lf command lists the definition of the
query, as shown in the following example:
CMS # mxquery -lf "All Standalone Servers"
<?xml version="1.0" encoding="ISO-8859-1"?>
<query-list>
<query id="61" name="All Standalone Servers" type="DeviceViews"
category-name="HPVSE" owner="mxadmin">
<criteria name="CriteriaByProductType" sense="INCLUDE">
<value>Server</value>
</criteria>
<criteria name="SubType" sense="INCLUDE">
<value>HP9000</value>
<value>HPIntegrity</value>
37