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

<tr>
<td>
<input id="va00np00_va00np00SummaryTable_cpuTable.sortOrder"
name="va00np00_va00
np00SummaryTable_cpuTable.sortOrder" type="hidden" value="-1;A">
<table border="0" cellpadding="0" cellspacing="0"
class="printableDataTable" id=
"va00np00_va00np00SummaryTable_cpuTable">
<tr class="captionRow">
<th colIndex="0">CPU</th>
<th colIndex="1">Absolute Utilization</th>
<th colIndex="2">Percent of Allocation</th>
</tr>
<tr class="altRowColor"
id="va00np00_va00np00SummaryTable_cpuTable.row0">
<td>Average</td>
<td>2.48CPUs</td>
<td>&nbsp;&nbsp;69.1%</td>
</tr>
<tr id="va00np00_va00np00SummaryTable_cpuTable.row1">
<td>Peak</td>
<td>3.56CPUs</td>
<td>&nbsp;&nbsp;89.0%</td>
</tr>
CMS #
The average Utilization parameter is contained in a table called SummaryTable_cpuTable in
row0. The following is an example filter for extracting this value:
CMS # cat ./getutil.sh
cat $1 | awk
'/SummaryTable_cpuTable.row0/,/SummaryTable_cpuTable.row1/' \
| grep "CPUs"
CMS #
This filter produces the following output:
CMS # ./getutil.sh va00np00.html
<td>2.48CPUs</td>
CMS #
Memory utilization can be extracted in a similar manner.
25