2 .\" Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
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.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 .\" $Id: isdntrace.8,v 1.14 2000/02/13 15:26:52 hm Exp $
27 .\" $FreeBSD: src/usr.sbin/i4b/isdntrace/isdntrace.8,v 1.9.2.6 2003/03/11 21:13:50 trhodes Exp $
28 .\" $DragonFly: src/usr.sbin/i4b/isdntrace/isdntrace.8,v 1.3 2006/02/17 19:40:15 swildner Exp $
30 .\" last edit-date: [Wed Nov 1 15:52:28 2000]
37 .Nd isdn4bsd ISDN protocol trace utility
61 utility is part of the isdn4bsd package and is used to provide the user with a
62 mnemonic display of the layers 1, 2 and 3 protocol activities on
63 the D channel and hex dump of the B channel(s) activities.
65 Together with two passive supported cards and an easy to build cable it can
66 also be used to monitor the complete traffic on a S0 bus providing S0 bus
71 utility is only available for passive supported cards.
75 All filenames, user specified or default, get a date and time stamp string
76 added in the form -yyyymmdd-hhmmss: a hyphen, four digits year, two digits
77 month and day, a hyphen and two digits hour, minutes and seconds.
78 Tracefiles no longer get overwritten.
79 In case a new filename is needed within a second, the filename-generating
80 mechanism sleeps one second.
82 In case the program is sent a USR1 signal, a new user specified or default
83 filename with a new date and timestamp is generated and opened.
85 The following options can be used:
90 in analyzer mode by using two passive cards and a custom cable which can
91 be build as described in the file
93 in the isdn4bsd source distribution. One card acts as a receiver for the
94 transmitting direction on the S0 bus while the other card acts as a receiver
95 for the receiving direction on the S0 bus. Complete traffic monitoring is
96 possible using this setup.
98 switch B channel tracing on (default off).
100 switch D channel tracing off (default on).
104 as the name of a file into which to write tracing output (default filename is
105 isdntrace<n> where n is the number of the unit to trace).
107 switch display of header off (default on).
109 print layer 1 (I.430) INFO signals to monitor layer 1 activity (default off).
111 switch displaying of Layer 2 (Q.921) frames off (default on).
113 This option takes a numeric argument specifying the minimum
114 frame size in octets a frame must have to be displayed. (default 0)
116 switch off writing trace output to a file (default on).
120 as the name of a file used for the -B and -P options (default filename
121 is isdntracebin<n> where n is the number of the unit to trace).
123 Switch off printing a raw hexadecimal dump of the packets preceding
124 the decoded protocol information (default on).
128 as the unit number of the controller card to trace (default 0).
130 Switch on printing of packets with a non-Q.931 protocol discriminator.
133 Write undecoded binary trace data to a file for later or remote
134 analyzing (default off).
136 This option can only be used when option -P (playback from binary data file)
137 is used. The -F option causes playback not to stop at end of file but rather
138 to wait for additional data to be available from the input file.
140 This option is useful when trace data is accumulated in binary format (to
141 save disk space) but a monitoring functionality is desired.
144 Read undecoded binary trace data from file instead from device (default off).
148 as the receiving interface unit number in analyze mode.
152 as the transmitting interface unit number in analyze mode.
155 When the USR1 signal is sent to a
157 process, the currently used logfiles are reopened, so that logfile
158 rotation becomes possible.
160 The trace output should be obvious. It is very handy to have the following
161 standard texts available when tracing ISDN protocols:
163 .Bl -tag -width Ds -compact -offset indent
165 ISDN BRI layer 1 protocol description.
167 ISDN D-channel layer 2 protocol description.
169 ISDN D-channel layer 3 protocol description.
171 German-specific ISDN layer 3 protocol description. (NOTICE: decoding
172 of the 1TR6 protocol is included but not supported since i dont have
173 any longer access to a 1TR6 based ISDN installation.)
179 automatically detects the layer 3 protocol being used by looking at the
180 Protocol Discriminator (see: Q.931/1993 pp. 53).
182 .Bl -tag -width daddeldi -compact
183 .It Pa /dev/i4btrc<n>
184 The devicefile(s) used to get the trace messages for ISDN card unit <n>
189 .Bd -literal -offset indent
190 isdntrace -f /var/tmp/isdn.trace
193 will start D channel tracing on passive controller 0 with all except B
194 channel tracing enabled and logs everything into the output file
195 /var/tmp/isdn.trace-yyyymmdd-hhmmss (where yyyymmdd and hhmmss are replaced
196 by the current date and time values).
200 ITU Recommendations I.430, Q.920, Q.921, Q.930, Q.931
202 FTZ Richtlinie 1TR3, Band III
204 ITU Recommendation Q.932 (03/93), Q.950 (03/93)
206 ETSI Recommendation ETS 300 179 (10/92), ETS 300 180 (10/92)
208 ETSI Recommendation ETS 300 181 (04/93), ETS 300 182 (04/93)
210 ITU Recommendation X.208, X.209
215 utility was written by
216 .An Gary Jennejohn Aq gj@FreeBSD.org
218 .An Hellmuth Michaelis Aq hm@FreeBSD.org .
220 This manual page was written by
221 .An Hellmuth Michaelis .
223 Still some or more left.