Apple oxs Server User Manual


 
Chapter 11 Working With Mail Service 117
Listing Mail Service Statistics
You can use the serveradmin getHistory command to display a log of periodic
samples of the number of user connections and the data throughput. Samples are
taken once each minute.
To list samples:
$ sudo serveradmin command
mail:command = getHistory
mail:variant = statistic
mail:timeScale = scale
Control-D
Output
mail:nbSamples = <samples>
mail:v2Legend = "throughput"
mail:samplesArray:_array_index:0:v
n
= <sample>
mail:samplesArray:_array_index:0:t = <time>
mail:samplesArray:_array_index:1:v
n
= <sample>
mail:samplesArray:_array_index:1:t = <time>
[...]
mail:samplesArray:_array_index:
i
:v
n
= <sample>
mail:samplesArray:_array_index:
i
:t = <time>
mail:v1Legend = "connections"
afp:currentServerTime = <servertime>
Parameter Description
statistic
The value you want to display.
Valid values:
v1 - number of connected users (average during sampling period)
v2 - data throughput (bytes/sec)
scale
The length of time in seconds, ending with the current time, for
which you want to see samples. For example, to see 24 hours of
data, you would specify mail:timeScale = 86400.
Value displayed by getHistory Description
<samples> The total number of samples listed.
<sample> The numerical value of the sample.
For connections (v1), this is integer average number of users.
For throughput, (v2), this is integer bytes per second.
<time> The time at which the sample was measured. A standard UNIX time
(number of seconds since Sep 1, 1970.) Samples are taken every 60
seconds.
LL2354.book Page 117 Monday, October 20, 2003 9:47 AM