144

The computer will respond with the following output:

afp:command = "cancelDisconnect"

afp:timeStamp = "<time>"

afp:status = <status>

Value

Description

<time>

The time at which the command was executed.

 

 

<status>

A command status code:

 

0 = command successful

 

 

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

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.

 

 

 

The computer will respond with the following 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>

Chapter 9 Working with File Services

Page 144
Image 144
Apple Mac OS X Server manual Listing AFP Service Statistics, Computer will respond with the following output