acct(1M) acct(1M)NAME acctdisk, acctdusg, accton, acctwtmp - overview of accounting commands SYNOPSIS /usr/lib/acct/acctdisk /usr/lib/acct/acctdusg [-p file] [-u file] /usr/lib/acct/accton [file] /usr/lib/acct/acctwtmp reason DESCRIPTION Overview Accounting software is a set of tools (both C programs and shell procedures) that build accounting systems. acctsh(1M) describes the shell procedures built on top of the C pro- grams. Connect-time accounting is handled by programs writing records into /etc/utmp, (described in utmp(4)). acctcon(1M) describes programs converting /etc/utmp into session and charging records, which acctmerg(1M) then summarizes. The A/UX system kernel performs process accounting. When a process terminates, one record per process is written to a file (normally /usr/adm/pacct). The programs in acctprc(1M) summarize this data for charging; acctcms(1M) summarizes command use. You can examine current process data with acctcom(1). acctmerg merges and summarizes process accounting and con- nect time accounting (or any accounting records in the for- mat described in acct(4)) into total accounting records (see tacct format in acct(4)). prtacct (see acctsh(1M)) formats accounting records. acctdisk acctdisk reads lines containing 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 acctdusg reads its standard input (usually from find -print) and computes consumption of disk resource (including in- direct blocks) by login. -p file use a password file other than /etc/passwd (see diskusg(1M)). April, 1990 1
acct(1M) acct(1M)-ufile place records acctdusg doesn't charge anyone for in file. This is potential way to find users trying to avoid disk charges. accton Typing accton turns process accounting off. file append process accounting records to this existing file (see acct(2) and acct(4)). acctwtmp acctwtmp writes a utmp(4) record containing the time and a reason to its standard output. The record written will be of type ACCOUNTING (see utmp(4)). reason a string of up to 11 characters, numbers, $, or spaces. For example, the following are suggestions for reboot and shutdown procedures, respectively: acctwtmp `uname` >> /etc/wtmp acctwtmp "file save" >> /etc/wtmp FILES /usr/lib/acct/acctdisk /usr/lib/acct/acctdusg /usr/lib/acct/accton /usr/lib/acct/acctwtmp /etc/passwd used to convert login name to user ID /usr/lib/acct holds accounting commands listed in this section of the manual /usr/adm/pacct current process accounting file /etc/wtmp login/logoff history file SEE ALSO acctcom(1), acctcms(1M), acctcon(1M), acctmerg(1M), acctprc(1M), acctsh(1M), diskusg(1M), fwtmp(1M), runacct(1M), acct(2), acct(4), utmp(4). 2 April, 1990