1998-12-27 21:47:14 +00:00
|
|
|
.\"
|
2000-10-09 14:22:51 +00:00
|
|
|
.\" Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved.
|
1998-12-27 21:47:14 +00:00
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
2000-10-09 14:22:51 +00:00
|
|
|
.\" $Id: isdndebug.8,v 1.11 2000/05/31 08:15:29 hm Exp $
|
1999-12-14 21:14:28 +00:00
|
|
|
.\"
|
1999-08-28 01:35:59 +00:00
|
|
|
.\" $FreeBSD$
|
1998-12-27 21:47:14 +00:00
|
|
|
.\"
|
2000-10-09 14:22:51 +00:00
|
|
|
.\" last edit-date: [Wed May 31 10:15:07 2000]
|
1998-12-27 21:47:14 +00:00
|
|
|
.\"
|
2000-10-09 14:22:51 +00:00
|
|
|
.Dd May, 31, 2000
|
1999-08-15 08:47:11 +00:00
|
|
|
.Dt ISDNDEBUG 8
|
|
|
|
.Os
|
1998-12-27 21:47:14 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm isdndebug
|
1999-08-06 14:05:10 +00:00
|
|
|
.Nd display and control isdn4bsd kernel variables and statistics
|
1998-12-27 21:47:14 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2000-10-09 14:22:51 +00:00
|
|
|
.Op Fl c
|
1998-12-27 21:47:14 +00:00
|
|
|
.Op Fl e
|
|
|
|
.Op Fl g
|
|
|
|
.Op Fl l Ar layer
|
|
|
|
.Op Fl m
|
1999-08-06 14:05:10 +00:00
|
|
|
.Op Fl q
|
1998-12-27 21:47:14 +00:00
|
|
|
.Op Fl r
|
|
|
|
.Op Fl s Ar value
|
|
|
|
.Op Fl u Ar unit
|
|
|
|
.Op Fl z
|
2000-10-09 14:22:51 +00:00
|
|
|
.Op Fl C
|
1999-08-06 14:05:10 +00:00
|
|
|
.Op Fl Q
|
1998-12-27 21:47:14 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm isdndebug
|
1999-08-06 14:05:10 +00:00
|
|
|
is part of the isdn4bsd package and is used to control the level of
|
|
|
|
debugging output of the isdn4bsd kernel part.
|
|
|
|
Every layer of the isdn4bsd kernel uses a debugging mask which can be
|
|
|
|
manipulated using this utility.
|
1998-12-27 21:47:14 +00:00
|
|
|
.Pp
|
|
|
|
A second usage of
|
|
|
|
.Nm
|
2000-10-09 14:22:51 +00:00
|
|
|
is to display and reset chipset specific statistics and/or error counters
|
|
|
|
and and to display and reset the D-channel layer 2
|
1999-08-06 14:05:10 +00:00
|
|
|
(Q.921 LAPD protocol) statistics and error counters.
|
1998-12-27 21:47:14 +00:00
|
|
|
.Pp
|
|
|
|
The following options are available:
|
|
|
|
.Bl -tag -width Ds
|
2000-10-09 14:22:51 +00:00
|
|
|
.It Fl c
|
|
|
|
Display chipset specific statistics and/or error counters.
|
1998-12-27 21:47:14 +00:00
|
|
|
.It Fl e
|
|
|
|
Set debugging mask for the selected layer(s) to display errors only.
|
|
|
|
.It Fl g
|
|
|
|
Get the debugging mask for the selected layer(s).
|
|
|
|
.It Fl l
|
2000-10-09 14:22:51 +00:00
|
|
|
Specify the layer for which a command applies. Default is all layers.
|
1998-12-27 21:47:14 +00:00
|
|
|
.It Fl m
|
|
|
|
Set debugging mask for the selected layer(s) to display all possible
|
|
|
|
debugging messages (maximum output).
|
1999-08-06 14:05:10 +00:00
|
|
|
.It Fl q
|
|
|
|
Display the Q.921 (D-channel layer 2) frame receive/transmit statistics.
|
1998-12-27 21:47:14 +00:00
|
|
|
.It Fl r
|
|
|
|
Set debugging mask for the selected layer(s) to the compiled in default
|
|
|
|
(reset).
|
|
|
|
.It Fl s
|
2000-10-09 14:22:51 +00:00
|
|
|
Set debugging mask for the selected layer(s) to value. Value can be
|
1998-12-27 21:47:14 +00:00
|
|
|
specified in any number base supported by
|
|
|
|
.Xr sscanf 3 .
|
|
|
|
.It Fl u
|
2000-10-09 14:22:51 +00:00
|
|
|
Set the unit numbers for the -c, -q, -C and -Q flags.
|
1998-12-27 21:47:14 +00:00
|
|
|
.It Fl z
|
|
|
|
Set debugging mask for the selected layer(s) to no output at all (zero).
|
|
|
|
.It Fl H
|
2000-10-09 14:22:51 +00:00
|
|
|
Reset the chipset specific statistics and/or error counters to zero.
|
1999-08-06 14:05:10 +00:00
|
|
|
.It Fl Q
|
|
|
|
Reset the Q.921 (D-channel layer 2) frame receive/transmit statistics to zero.
|
1999-05-20 10:14:57 +00:00
|
|
|
.El
|
1998-12-27 21:47:14 +00:00
|
|
|
.Pp
|
|
|
|
.Sh FILES
|
|
|
|
/dev/i4bctl
|
1999-12-14 21:14:28 +00:00
|
|
|
|
1998-12-27 21:47:14 +00:00
|
|
|
.Sh EXAMPLES
|
|
|
|
The command:
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
isdndebug -g
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
displays the current debugging level for all ISDN layers
|
1999-12-14 21:14:28 +00:00
|
|
|
|
2000-11-17 11:44:16 +00:00
|
|
|
.Sh AUTHORS
|
1998-12-27 21:47:14 +00:00
|
|
|
The
|
|
|
|
.Nm
|
1999-12-14 21:14:28 +00:00
|
|
|
utility and this manpage were written by
|
1999-08-15 08:47:11 +00:00
|
|
|
.An Hellmuth Michaelis Aq hm@kts.org .
|