acct(1M) acct(1M)
NAME
acctdisk, acctdusg, accton, acctwtmp - overview of
accounting and miscellaneous 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
programs.
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 Oreo 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
connect time accounting (or any accounting records in the
format 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
indirect blocks) by login.
-p file
use a password file other than /etc/passwd (see
diskusg(1M)).
Page 1 (last mod. 1/15/87)
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 a and a
reason to its standard output.
reason
a string of up to 11 characters, numbers, $, or spaces.
Assigns a record type of ACCOUNTING (see utmp(4)). 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).
Page 2 (last mod. 1/15/87)