acctsh: chargefee, ckpacct, dodisk, lastlogin, monacct, nulladm, prctmp, prdaily, prtacct, shutacct, startup, turnacct — shell procedures for accounting
on | off | switch
Can be invoked to charge a
of units to
A record is written to
to be merged with other accounting records during the night.
Should be initiated via
It periodically checks the size of
If the size exceeds
1000 by default,
is invoked with argument
If the number of free disk blocks in the
file system falls below 500,
automatically turns off the collection of process accounting records via the
When at least this number of blocks is restored, the
accounting will be activated again.
This feature is sensitive to the frequency at which
is executed, usually by
Should be invoked by
to perform the disk accounting functions.
By default, it will do disk accounting on the special files in
flag is used,
it does a slower version of disk accounting by login directory.
specifies the one or more filesystem names
where disk accounting is to be done.
is used, disk accounting will be done on these filesystems only.
flag is used,
should be mount points of mounted filesystem.
If omitted, they should be the special file names
of mountable filesystems.
which shows the last date on which each user logged in (see
Should be invoked once each month or each accounting period.
indicates which month or period it is.
is not given, it defaults to the current month (01 through 12).
This default is useful if
is to executed via
on the first day of each month.
creates summary files in
and restarts summary files in
with mode 664 and ensures that owner and group are
It is called by various accounting shell procedures.
Can be used to print the session record file normally
to format a report of the previous day's accounting data.
The report resides in
is the month and day of the report.
The current daily accounting reports may be printed by typing
Previous days' accounting reports can be printed by using the
option and specifying the exact report date desired.
flag prints a report of exceptional usage by login id for
the specifed date.
Previous daily reports are cleaned up and therefore inaccessible
after each invocation of
flag prints a report of exceptional resource usage by command,
and can be used on current day's accounting data only.
Can be used to format and print any total accounting
Should be invoked during a system shutdown
to turn process accounting off and append a "reason" record to
Should be called by system startup scripts
to turn the accounting on whenever the system is brought up.
An interface to
to turn process accounting
argument turns accounting off, moves the current
to the next free name in
then turns accounting back on again.
is a number starting with
and incrementing by one for each additional
is called by
and thus can be run under
and used to keep
to a reasonable size.
holds all accounting commands listed in section (1M) of this manual
accumulator for fees
current file for per-process accounting
gets large, and during execution of daily accounting procedure
contains the limits for exceptional
usage by command name
contains the limits for exceptional usage by login id
summary directory, should be saved
chargefee: SVID2, SVID3
ckpacct: SVID2, SVID3
dodisk: SVID2, SVID3
lastlogin: SVID2, SVID3
monacct: SVID2, SVID3
prctmp: SVID2, SVID3
prdaily: SVID2, SVID3
prtacct: SVID2, SVID3
shutacct: SVID2, SVID3
startup: SVID2, SVID3
turnacct: SVID2, SVID3