acctsh(1M) acctsh(1M)
NAME
chargefee, ckpacct, dodisk, lastlogin, monacct, nulladm,
prctmp, prdaily, prtacct, shutacct, startup, turnacct -
shell procedures for accounting
SYNOPSIS
/usr/lib/acct/chargefee login-name number
/usr/lib/acct/ckpacct [blocks]
/usr/lib/acct/dodisk [-o] [file ...]
/usr/lib/acct/lastlogin
/usr/lib/acct/monacct number
/usr/lib/acct/nulladm file
/usr/lib/acct/prctmp [file...]
/usr/lib/acct/prdaily [-l] [-c] [mmdd]
/usr/lib/acct/prtacct file [heading]
/usr/lib/acct/shutacct [reason]
/usr/lib/acct/startup
/usr/lib/acct/turnacct on | off | switch
DESCRIPTION
chargefee
chargefee charges number units to login-name and writes a
record to /usr/adm/fee, to merge with other accounting
records during the night.
ckpacct
You should initiate ckpacct with cron(1M). It periodically
checks the size of /usr/adm/pacct. If the size exceeds
blocks (500 by default), it invokes turnacct switch. If the
number of free disk blocks in the /usr file system falls
below 500, ckpacct automatically uses turnacct off to stop
collecting process accounting records. When the number of
free blocks again rises to 500, it reactivates accounting.
This feature is sensitive to how often ckpacct is executed,
usually by cron.
dodisk
cron should invoke dodisk to perform disk accounting on the
special files in /etc/checklist.
-o do a slower version of disk accounting by login direc-
April, 1990 1
acctsh(1M) acctsh(1M)
tory.
file specifies one or more file systems to do disk account-
ing on. If you use file, disk accounting will only be
done on these file systems. If you use the -o flag,
file should be mount points of mounted file systems.
If omitted, they should be the special file names of
mountable file systems.
lastlogin
runacct (1M) invokes lastlogin to update
/usr/adm/acct/sum/loginlog, which shows the last date each
person logged in.
monacct
You should invoke monacct once a month or once an accounting
period.
number
indicates the month or period. If you don't supply a
number, it defaults to the current month (1-12). This
default is useful if cron(1M) executes monacct on the
first day of each month.
Note: Text can be substituted for the number op-
tion.
monacct creates summary files in /usr/adm/acct/fiscal and
restarts summary files in /usr/adm/acct/sum.
nulladm
nulladm creates file with mode 664 and owner and group adm.
Various accounting shell procedures call this file.
prctmp
prctmp prints the session record file (normally
/usr/adm/acct/nite/ctmp) created by acctcon1 (see
acctcon(1M)).
prdaily
runacct (1M) invokes prdaily to format a report of the pre-
vious day's accounting data. The report is in
/usr/adm/acct/sum/rprtmmdd where mmdd is the month and day
of the report. Typing prdaily prints the current daily ac-
counting reports.
mmdd prints the specified days' accounting reports.
-l prints a report of exceptional usage by login ID for
the specified date. monacct cleans up previous daily
reports and make them inaccessible to prdaily.
2 April, 1990
acctsh(1M) acctsh(1M)
-c prints a report of exceptional resource usage by com-
mand. You can only use this on the current day's ac-
counting data.
prtacct
prtacct formats and prints any total accounting (tacct)
file.
If the heading option is chosen, a heading is printed on the
first line of each output page, after the date and before
the page number. Multiple word headings must be enclosed in
double quotes.
shutacct
Invoke shutacct during a system shutdown (usually in
/etc/shutdown) to turn process accounting off and append a
reason record to /etc/wtmp.
startup
/etc/rc should call startup to turn accounting on when the
system is brought up.
turnacct
turnacct is an interface to accton (see acct(1M)) which
turns process accounting on or off. turnacct switch turns
accounting off, moves the current /usr/adm/pacct to the next
free name in /usr/adm/pacctincr (where incr is a number
starting with 1 and incremented by 1 for each additional
pacct file), then turns accounting back on. ckpacct calls
this procedure, and thus cron can use it to keep pacct to
reasonable size.
FILES
/usr/lib/acct/chargefee
/usr/lib/acct/ckpacct
/usr/lib/acct/dodisk
/usr/lib/acct/lastlogin
/usr/lib/acct/monacct
/usr/lib/acct/nulladm
/usr/lib/acct/prctmp
/usr/lib/acct/prdaily
/usr/lib/acct/prtacct
/usr/lib/acct/shutacct
/usr/lib/acct/startup
/usr/lib/acct/turnacct
/usr/adm/fee accumulator for fees
/usr/adm/pacct current file for per process ac-
counting
/usr/adm/pacct* used if pacct gets large and
when executing daily accounting
procedure
/etc/wtmp login/logoff summary
April, 1990 3
acctsh(1M) acctsh(1M)
/usr/lib/acct/ptelus.awk contains the limits for excep-
tional usage by login ID
/usr/lib/acct/ptecms.awk contains the limits for excep-
tional usage by command name
/usr/adm/acct/nite working directory
/usr/lib/acct holds all accounting commands
listed in this section of the
manual
/usr/adm/acct/sum summary directory, should be
saved
SEE ALSO
acctcom(1), acct(1M), acctcms(1M), acctcon(1M),
acctmerg(1M), acctprc(1M), cron(1M), diskusg(1M), fwtmp(1M),
rc(1M), runacct(1M), shutdown(1M), acct(2), acct(4),
utmp(4).
4 April, 1990
NAME
startup - run startup programs at boot time
SYNOPSIS
/etc/startup
DESCRIPTION
startup is a shell script, called from /etc/sysinitrc, which
runs a set of startup routines to initialize autoconfigured
modules that are part of the kernel. An example startup
script is /etc/startup.d/BNET which initializes the loop in-
terface lo0.
NOTE
startup is called from /etc/sysinitrc at system startup. It
is not expected to be of general utility.
FILES
/etc/startup
/etc/startup.d/*
SEE ALSO
autoconfig(1M), sysinitrc(1M).
April, 1990 1