Chapter 20

UNIX System Monitoring Examples

You can monitor UNIX system resources using ASPL differential group operators. The following chapter shows three sample monitoring scripts: monitordir.aspl, procstats.aspl, and procints.aspl. The three set operators: g@, f@, and d@, are called differential operators because they turn set variables into differential variables. A set variale on which a differential operator is applied is called a differential group variable. For instance, g@ x displays the difference in the group pointed to by the set variable x and its last archived instance. The g@ x won't capture the elements whose attributes may have changed. However, one can use the tick predicate specifying "such that where the ks-vector attributes are different" to capture the differences in the changing attributes: g@,`ks~ x. Here the comma following the differential set operator is a labination operator, and the tick predicate `ks~ is catenated for the condition aforementioned. The operator @ x list the archives of the differential group variable x. By interrogating a set variable, ASPL sources the variable: if any change in the data is detected, then the variable is archived and reassigned with the sourced data. Therefore, ASPL set variables can be viewed as differential variables, and you can use the command playsim to play the similarity on such a set variable. The command causes an iteration aggregating the similarity between the historical archived data over time, and since ASPL variables maintain the time of their creation, then the command aggregates and calculates the Rate of Change in Dissimilarity of the Process represented by the set variable.

Image File

Read Chapter 20
Back to Contents

Image File