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

<th colIndex="1">CPU</th>
<th colIndex="2">Memory</th>
<th colIndex="3">Network I/O</th>
<th colIndex="4">Disk I/O</th>
<th colIndex="5">CPU Count</th>
<th colIndex="6">Memory Size</th>
<th colIndex="7">Type</th>
<th colIndex="8">Platform</th>
<th colIndex="9">Available Period</th>
</tr>
<tr class="altRowColor" id="ReportIndexPage_systemTable.row0">
<td>
<a class="vcm-link" href="va00np00.html?1191423209612"
id="ReportIndexPage_systemLinkva00np00">
<div style="display:inline">va00np00</div>
</a>
</td>
<td>3.52CPUs</td>
<td>0.92GB</td>
<td>0.29Mb/s</td>
<td>0.05Mb/s</td>
<td>3.30 @ 1.50 GHz</td>
<td>15.93GB</td>
<td>nPar, SRD Member, Server, Application Discovery</td>
<td><img height="20" id="ReportIndexPage_platformva00np00_osIcon"
src="./images/hpux.gif" title="HP-UX B.11.31 U" width="4
5">
<br>ia64 hp server rx7620
</td>
<td>9/17/07 12:00:00 AM EDT - 9/24/07 12:00:00 AM EDT</td>
</tr>
</table><!--End: ReportIndexPage_systemTable-->
</td>
The following is a simple filter to extract this allocation information:
CMS # cat ./getalloc.sh
cat $1 | awk '/ReportIndexPage_systemTable.row0/,/End:
ReportIndexPage_systemTable/' | \
grep GHz
CMS #
This filter produces the following output:
CMS # ./getalloc.sh index.html
<td>3.30 @ 1.50 GHz</td>
CMS #
27