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 samples:

$ sudo serveradmin command afp:command = getHistory afp:variant = statistic afp:timeScale = scale Control-D

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.

 

 

 

Output

afp:nbSamples = <samples>

afp:samplesArray:_array_index:0:vn = <sample>

afp:samplesArray:_array_index:0:t = <time>

afp:samplesArray:_array_index:1:vn = <sample>

afp:samplesArray:_array_index:1:t = <time> [...] afp:samplesArray:_array_index:i:vn = <sample> afp:samplesArray:_array_index:i:t = <time> afp:vnLegend = "<legend>" afp:currentServerTime = <servertime>

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 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.

 

 

Chapter 8 Working With File Services

75

Page 75
Image 75
Apple oxs manual Listing AFP Service Statistics, To list samples