Apple Mac OS X Server Network Card User Manual


 
Chapter 16 Working with QuickTime Streaming Server 273
Viewing QTSS 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
qtss:command = getHistory
qtss:variant =
statistic
qtss:timeScale =
scale
Control-D
The computer will respond with the following output:
qtss:nbSamples = <samples>
qtss:samplesArray:_array_index:0:v
n
= <sample>
qtss:samplesArray:_array_index:0:t = <time>
qtss:samplesArray:_array_index:1:v
n
= <sample>
qtss:samplesArray:_array_index:1:t = <time>
[...]
qtss:samplesArray:_array_index:
i
:v
n
= <sample>
qtss:samplesArray:_array_index:
i
:t = <time>
qtss:v
n
Legend = "<legend>"
qtss: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, for
which you want to see samples. For example, to see 30 minutes of
data, you would specify
qtss: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 integer average number of
connections.
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.