extract
,
an HP Performance Agent program. The extract
program
writes the performance data in binary format. This binary file is
then used as input to SAS IT Resource Management.
extract
command. For
the complete list of options and arguments that are available, see
the HP Performance Agent User's Manual.
export-template-file
that
is used to generate the data that can be input to SAS IT Resource
Management. SAS IT Resource Management expects the extracted data
to be in a binary format. This format is specified when the export
template file is created. The SAS IT Resource Management data model
lists the tables and variables for the HP Perf Agent Adapter. The
data model is available for review in the SAS IT Resource Management 3.7 Data Model.
You can use the data model to specify the HP export function so that
it produces a customized export template file that meets the needs
of your site.
extract -xp d-1 -gapdcnt -r reptfile.mwr -f data.bin,purge -v
extract
command into a shell,
bat, or Perl script that runs once a night by means of a scheduling
tool. (Perl is an open-source programming language that can be used
for data manipulation tasks.) Cron can be used for scheduling on UNIX
systems, and Task Manager can be used on Windows operating systems.
The extracted files from each server can then be transferred to a
centralized location to be read by SAS IT Resource Management using
the file transfer utility of your choice. Delete the older raw data
files to preserve disk space.
$ cat /var/opt/perf/datafiles/itrm-extract/extract.sh # shell script to do HPOV extracts /opt/perf/bin/extract -xp d-1 -gapdcnt \ -l /var/opt/perf/datafiles/logglob \ -r /var/opt/perf/reptfile.mwr \ -f /var/opt/perf/datafiles/itrm-extract/server1-'date +%y%m%d'.bin, purge -v
server1-
yymmdd.bin
.
(If yesterday's date is November 26, 2007, then the name of the
output file is server1-071126.bin
).
The output file is placed in the directory that is located here: /var/opt/perf/datafiles/itrm-extract
.