]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/stallion/stlstats/stlstats.8
This commit was generated by cvs2svn to compensate for changes in r47142,
[FreeBSD/FreeBSD.git] / usr.sbin / stallion / stlstats / stlstats.8
1 .\" Copyright (c) 1996 Greg Ungerer (gerg@stallion.oz.au).
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by Greg Ungerer.
15 .\" 4. Neither the name of the author nor the names of any co-contributors
16 .\"    may be used to endorse or promote products derived from this software
17 .\"    without specific prior written permission.
18 .\"
19 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 .\" SUCH DAMAGE.
30 .\"
31 .Dd December 2, 1996
32 .Os FreeBSD
33 .Dt STLSTATS 8 i386
34 .Sh NAME
35 .Nm stlstats
36 .Nd "Stallion Technologies multiport serial statistics display"
37 .Sh SYNOPSIS
38 .Nm stlstats
39 .Op Fl hVi
40 .Op Fl c Ar control-device
41 .Op Fl b Ar board-number
42 .Op Fl p Ar port-number
43 .Op Fl d Ar port-device
44 .Sh DESCRIPTION
45 .Nm Stlstats
46 is used to display statistical information about the ports on Stallion
47 Technologies multiport serial boards.
48 .Pp
49 .Nm Stlstats
50 normally runs as a full screen menu driven application.
51 A help line is displayed at the bottom of each screen with the valid
52 input keys for this screen.
53 .Pp
54 Generally the digit keys ('0' through '9') specify the number of the
55 device to display statistics for.
56 Where digits alone are not enough to access all possible devices
57 (for example on 16 port panels) then the first letters of the alphabet
58 are used to access the remaining devices.
59 The letters 'a' through 'f' are used to access devices 10 through 15.
60 .Pp
61 The 'q' key is always used to move back to the previous level screen.
62 The escape key can also be used to move back to the previous screen.
63 .Pp
64 The first screen is a display of all ports on panel 0 of board 0.
65 Values displayed on this screen are a summary of the information for
66 each port.  The statistics displayed are: driver and TTY state flags,
67 termios flags (cflags, iflags, oflags, lflags), RS-232 signal values
68 (as per TIOCM signal defines), total transmit and receive character
69 counts.
70 .Pp
71 From this screen you can look at summary information
72 about each panel and board installed in the system.
73 Each board is accessed by the digit keys ('0' through '7'),
74 while panels of each board can be cycled through using the 'n' key.
75 .Pp
76 The per port screen displays some detailed information about a
77 particular port.
78 This is accessed from the board screen using the 'p' key.
79 The first port displayed will be port 0.
80 To display other ports use the digit and alphabetic keys
81 ('0' through '9' and 'a' through 'f').
82 This screen displays: driver and TTY state flags, hardware ID,
83 termios flags (cflags, iflags, oflags, lflags),
84 total transmitted and received character counts,
85 current transmit and receive characters buffered,
86 receiver error counts (overruns, parity, framing, lost),
87 software flow control characters transmitted and received,
88 hardware flow control actions taken,
89 count of transmitted and received breaks,
90 modem signal transitions and
91 current RS-232 signal states.
92 .Pp
93 The options are:
94 .Bl -tag -width indent
95 .It Fl h
96 Output usage information.
97 .It Fl V
98 Output version information.
99 .It Fl i
100 Output only the board type information.
101 This output is useful for scripts or other programs that need to know
102 a little bit about the board (for example an automated download script).
103 .Nm Stlstats
104 will not enter full screen interactive mode. 
105 .It Fl c Ar control-device
106 Specify the board control device through which to gather port statistics.
107 The default is
108 .Pa /dev/staliomem0 .
109 .It Fl b Ar board-number
110 Specify the board number to display first.
111 The default is to display board 0.
112 .It Fl p Ar port-number
113 Specify the port number to display first.
114 .Nm Stlstats
115 will go straight into the port display screen (bypassing board display)
116 when this option is used.
117 .It Fl d Ar port-device
118 Specify the port special device file (the
119 .Pa /dev/ttyXXX
120 file) to
121 display first.
122 The board screen is bypassed and the port statistics screen is shown
123 immediately on start up.
124 .El
125 .Sh FILES
126 .Bl -tag -width /dev/staliomem0
127 .It Pa /dev/staliomem0
128 driver control device used for statistics collection
129 .Sh SEE ALSO
130 .Xr stl 4 ,
131 .Xr stli 4 ,
132 .Xr stlload 8
133 .Sh HISTORY
134 This program was originally developed by
135 .An Greg Ungerer Aq gerg@stallion.com .