/usr/lib/acct/acctdusg [ -u filename ] [ -p filename ]
/usr/lib/acct/accton [ filename ]
Accounting software is structured as a set of tools (consisting of both C programs and shell procedures) that can be used to build accounting systems. acctsh.8 describes the set of shell procedures built on top of the C programs.
Connect time accounting is handled by various programs that write records into /etc/utmp, as described in utmp.5v The programs described in acctcon.8 convert this file into session and charging records, which are then summarized by acctmerg.8
Process accounting is performed by the UNIX system kernel. Upon termination of a process, one record per process is written to a file (normally /var/adm/pacct). The programs in acctprc.8 summarize this data for charging purposes; acctcms.8 is used to summarize command usage. Current process data may be examined using acctcom.1
Process accounting and connect time accounting (or any accounting records in the format described in acct.5 can be merged and summarized into total accounting records by acctmerg (see tacct format in acct.5 prtacct (see acctsh.8 is used to format any or all accounting records.
acctdisk reads lines that contain user ID, login name, and number of disk blocks and converts them to total accounting records that can be merged with other accounting records.
acctdusg reads its standard input (usually from `find / -print') and computes disk resource consumption (including indirect blocks) by login.
accton without arguments turns process accounting off. If filename is given, it must be the name of an existing file, to which the kernel appends process accounting records (see acct.2v and acct.5 You must be super-user to use this command.
acctwtmp writes a utmp.5v record to its standard output. The record contains the current time and a string of characters that describe the reason. The login name for this record is set to @@acct (see utmp.5v reason must be a string of 8 or fewer characters, numbers, $, or SPACE characters. If reason contains a SPACE character, it must be enclosed in double quotes. For example, the following are suggestions for use in reboot and shutdown procedures, respectively:
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97