ASAP 3.2 Server Manual
HP NonStop ASAP Server Manual Page 324 of 381
"Cpu Date Time Busy Q Disp Disc Chit Swap MQ Pcbx Lcbx"skip 1
"-------- --- ----- ----- ---- -- ---- ---- ---- ---- -- ---- ----"
after change on ihour print
space 9
cpuno as i3 space
timestamp-date ( x ) as date "mb2/d2" space
timestamp-time ( x ) as time "h2:m2" space
cpubusy as i4 space
cpuq as "[bz] i2" space
cpudisp as "[bz] i4" space
discrate as "[bz] i4" space
chitrate as "[bz] i4" space
swaprate as "[bz] i4" space
memq as "[bz] i2" space
pcbmax as "[bz] i4" space
lcbmax as "[bz] i4" space
;
ASAPCOL as an Enform Server
This example shows ASAPCOL as an Enform server:
?section cpu-last-hour
!--------------------!
! Display cpu statistics by \node and cpu for the most recent hour.
! Note: this query uses an enform server to quickly obtain stats.
! Run the stat server as follows: ASAPCOL/ NAME $CPUdb / DB <db prefix>
!----------------------------------------------------------------------!
close net, net-srv, cpu;
open cpu-srv;
declare
x,cpubusy,cpuq,cpudisp,discrate,chitrate,swaprate,memq,pcbmax,lcbmax;
set @target-records 0 @stats on;
title "System Cpu Date Time Busy Q Disp Disc Chit Swap MQ Pcbx Lcbx";
subtitle "------- --- ----- ----- ---- -- ---- ---- ---- ---- -- ---- ----";
list by ihour noprint
x := ( (event.ts - 211024440000000000) /10000 * 65536 ) noprint