Initial import from FreeBSD RELENG_4:
[dragonfly.git] / usr.sbin / i4b / isdnd / isdnd.acct.5
1 .\"
2 .\" Copyright (c) 1997, 1999 Hellmuth Michaelis. 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 .\"
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
23 .\" SUCH DAMAGE.
24 .\"
25 .\"     $Id: isdnd.acct.5,v 1.11 1999/12/13 22:11:55 hm Exp $
26 .\"
27 .\" $FreeBSD: src/usr.sbin/i4b/isdnd/isdnd.acct.5,v 1.9.2.4 2001/08/01 17:45:03 obrien Exp $
28 .\"
29 .\"     last edit-date: [Mon Dec 13 22:58:12 1999]
30 .\"
31 .Dd September 11, 1998
32 .Dt ISDND.ACCT 5
33 .Os
34 .Sh NAME
35 .Nm isdnd.acct
36 .Nd isdn4bsd ISDN management daemon accounting file format
37 .Sh DESCRIPTION
38 The file
39 .Pa isdnd.acct
40 contains accounting information which is written if the variable
41 .Em useacctfile
42 in the
43 .Xr isdnd 8
44 configuration file
45 .Xr isdnd.rc 5
46 is set to
47 .Em on
48 and charging information transmission has been subscribed for the
49 ISDN connection (AOCD or AOCE).
50 .Pp
51 If the variable
52 .Em acctall
53 is set to
54 .Em on ,
55 accounting information is written even if the local site was not charged
56 or no charging information is available or is not subscribed.
57 .Pp
58 The general format of an accounting line is as follows:
59 .Pp
60 .Dl FROM - UNTIL NAME UNITS (SECONDS) (INBYTES/OUTBYTES)
61 .Pp
62 .Em FROM
63 is the time the connection was established in the format
64 .Dl Day.Month.Year Hour:Minutes:seconds
65 .Pp
66 .Em UNTIL
67 is the time the connection was closed. The format is the same as
68 described for
69 .Em FROM
70 above.
71 .Pp
72 .Em NAME
73 is the symbolic name got from the
74 .Em name
75 entry of the
76 .Xr isdnd.rc 5
77 config file for this connection.
78 .Pp
79 .Em UNITS
80 is the amount of charging units billed for the connection.
81 .Pp
82 .Em SECONDS
83 is the number of seconds the connection lasted.
84 .Pp
85 .Em INBYTES
86 and
87 .Em OUTBYTES
88 is the (optional) number of bytes that were transferred.
89 .Sh FILES
90 .Bl -tag -width /var/log/isdnd.acct -compact
91 .It Pa /var/log/isdnd.acct
92 The default accounting information file for the
93 .Nm isdnd
94 ISDN daemon.
95 .El
96 .Sh EXAMPLES
97 This is a typical accounting line:
98 .Pp
99 .Dl 12.06.97 10:41:37 - 12.06.97 10:45:18 GROGGY 2 (65) (4711/1147)
100 .Sh SEE ALSO
101 .Xr isdnd.rc 5 ,
102 .Xr isdnd 8
103 .Sh AUTHORS
104 The
105 .Xr isdnd 8
106 daemon and this manual page were written by
107 .An Hellmuth Michaelis Aq hm@kts.org .