Specifications

150 Chapter 9 Working with File Services
Viewing AFP Service Statistics
To view a log of periodic samples of the number of connections and the data
throughput, use the serveradmin getHistory command. Samples are taken once each
minute.
To view service statistic samples:
$ sudo serveradmin command
afp:command = getHistory
afp:variant =
statistic
afp:timeScale =
scale
Control-D
The computer responds with the following output:
afp:nbSamples = <samples>
afp:samplesArray:_array_index:0:v
n
= <sample>
afp:samplesArray:_array_index:0:t = <time>
afp:samplesArray:_array_index:1:v
n
= <sample>
afp:samplesArray:_array_index:1:t = <time>
[...]
afp:samplesArray:_array_index:
i
:v
n
= <sample>
afp:samplesArray:_array_index:
i
:t = <time>
afp:v
n
Legend = "<legend>"
afp:currentServerTime = <servertime>
Parameter Description
statistic
The value you want to display valid values:
Â
v1 = number of connected users (average during sampling period).
Â
v2 = throughput (bytes/sec).
scale
The length of time in seconds, ending with the current time, you want to see
samples for. For example, to see 30 minutes of data, you would specify
afp:timeScale = 1800.
Value displayed by
getHistory Description
<samples> The total number of samples listed.
<legend> A textual description of the selected statistic:
Â
"CONNECTIONS" for v1.
Â
"THROUGHPUT" for v2.
<sample> The numerical value of the sample:
 For connections (v1), this is an integer average number of users.
 For throughput, (v2), this is an integer bytes per second.
<time> The time the sample was measured. A standard UNIX time (number of seconds
since September 1, 1970). Samples are taken every 60 seconds.