Apple Mac OS X Server Network Card User Manual


 
144 Chapter 9 Working with File Services
The computer will respond with the following output:
afp:command = "cancelDisconnect"
afp:timeStamp = "<time>"
afp:status
= <status>
Listing AFP Service Statistics
You can use the serveradmin getHistory command to display a log of periodic
samples of the number of connections and the data throughput. Samples are taken
once each minute.
To list service statistic samples:
$ sudo serveradmin command
afp:command = getHistory
afp:variant =
statistic
afp:timeScale =
scale
Control-D
The computer will respond 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>
Value Description
<time> The time at which the command was executed.
<status> A command status code:
0 = command successful
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, for
which you want to see samples. For example, to see 30 minutes of
data, you would specify
afp:timeScale = 1800.