beautypg.com

Compaq AA-Q88CE-TE User Manual

Page 263

background image

Creating Monitor Pictures

A.3 Arithmetic Expressions and Operators

Aggregation of Data Items

DISPLAY commands which select multiple instances of a data item (for example,
multiple instances of a process counter) can use the following keywords to control
the way the items are aggregated.

_MIN—select the data item instance with the lowest value
_MAX—select the data item instance with the higheest value

By default, data items are totaled unless the

/AVERAGE=( )

qualifier is specified.

The following example from SYSTEM.MON shows the use of the _MIN keyword:

! Warn if any messages have been pending for more than 30 seconds
DISPLAY TEXT

/X=32

/Y=17 -

"X" -
/BOLD -
/SELECT="...

((rtr:rtr_current_time - _MIN(prc:rtr_mt_received_time)) <= 30)"

DISPLAY TEXT

/X=40

/Y=17 -

"X" -
/BOLD /BLINK -
/SELECT="...

((rtr:rtr_current_time - _MIN(prc:rtr_mt_received_time)) > 30)"

Some output has been omitted for clarity.

Creating Monitor Pictures A–5