IPACCTD(8)

NAME
ipacctd - read and reset ip accouting statistics and pipe them to a user program

SYNOPSIS
ipacctd [ -i interval ] stat-program

DESCRIPTION
ipacctd is a daemon to read the accounting statistics from /proc/net/ip_acct_user and deliver them to a user supplied accounting program. The stat-program argument specifies the program which should receive the accouting statistics. The program is started once every accounting run which occurs in certain intervals (see the -i option below) and gets the accounting statistics on standard input. The format of this accounting data is as follows:
    uid    sent    recv    flags
Where uid specifies the user id of the user who generated this traffic. Sent and recv specify the amount of data in bytes that has been sent or received after the last reset of the kernel accouting statistics. The flags field has currently only to states: 00 and 01, where 00 means that the user is allowed to send and receive ip packets and 01 means that the ipacct kernel driver currently disallows access to the net. There may be one or more lines of this format delimited by a newline.

OPTIONS
ipacctd allows the following options:

-i  specifies the interval in seconds between two reads of /proc/net/ip_acct_user

FILES
@IPACCTD_PID@ /proc/net/ip_acct_user

BUGS
Well, there are no bugs known so far, but if you find one or have suggestions and improvements in mind, please mail them to me (see AUTHOR below).

SEE ALSO
ipacct(8)

AUTHOR
Lars Fenneberg (lf@gimli.comlink.de) with ideas from Joao Ventura (jcv@students.fct.unl.pt).