#6 HPUX vmstat information missing

open
nobody
None
5
2003-12-05
2003-12-05
Philip Reyniers
No

******************************************
** Description:
******************************************
remstats 1.0.13a does not parse vmstat information
correctly for HPUX 10.x and 11.x.

******************************************
** Solution:
******************************************

I have modified the unix-status-server do_vmstat
function to support parsing vmstat information for HPUX
10.x and 11.x.

******************************************
** MODIFIED SOURCE FOR THE unix-status-server:
******************************************

...SOURCE...
}
# HPUX
# Purpose: To provide vmstat parsing for HPUX
# Created By:
# P. Reyniers
# Senior Solutions Architect
# Hewlett-Packard
elsif ( defined $main::os_name and
$main::os_name =~ /^HP-UX$/i) {
($swapmem, $freemem, $scanrate,
$syscalls, $contextswitches,
$cpuuser, $cpusystem, $cpuidle) =
@temp[3,4,11,13,14,15,16,17];
$now = time -
$main::remote_time_difference;
print <<"EOD_VMSTAT6";
$now swapmem $swapmem
$now freemem $freemem
$now scanrate $scanrate
$now contextswitches $contextswitches
$now cpuuser $cpuuser
$now cpusystem $cpusystem
$now cpuidle $cpuidle
EOD_VMSTAT6
}
...SOURCE...

How about adding this into the next release.

Peace Out.

:)

Discussion