Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

acctcom(1M)

acct(1M)

acctcms(1M)

acctcon(1M)

acctmerg(1M)

acctprc(1M)

cron(1M)

diskusg(1M)

fwtmp(1M)

brc(1M)

runacct(1M)

shutdown(1M)

acctsh(1M)

acct(2)

acct(4)

utmp(4)




acctsh(1M) acctsh(1M)
NAME chargefee, ckpacct, dodisk, lastlogin, monacct, nulladm, prctmp, prdaily, prtacct, shutacct, startup, turnacct - provide shell procedures for accounting SYNOPSIS chargefee login-name number ckpacct [amt] dodisk [-o] [filesys]... lastlogin monacct month nulladm name prctmp [recfile]... prdaily [-l] [-c] [mmdd] prtacct file [heading] shutacct [reason] startup turnacct on| off| switch ARGUMENTS amt Specifies the block size of /usr/adm/pacct. The default is 500. -c Prints a report of exceptional resource usage by command. You can only use this on the current day's accounting data. file Specifies the total accounting file (tacct). filesys Specifies the file system to do disk accounting on. If you use filesys, disk accounting will only be done on these file systems. If you use the -o option, filesys should be mount points of mounted file systems. If omitted, they should be the special file names of mountable file systems. heading Specifies the heading that 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 January 1992 1



acctsh(1M) acctsh(1M)
double quotes. -l Prints a report of exceptional usage by login ID for the specified date. The monacct command cleans up previous daily reports and makes them inaccessible to prdaily. login-name Specifies a user account. mmdd Prints the specified day's accounting reports. month Specifies the month or period. If you don't supply a month, it defaults to the current month (1-12). This default is useful if cron(1M) executes monacct on the first day of each month. name Specifies the name of the file that is created by nulladm. number Specifies the amount of units to be charged. -o Does a slower version of disk accounting by login directory. off Turns accounting off. on Turns accounting on. reason Specifies the name of the record that will be appended to /etc/wtmp. recfile Specifies the session record file. The default is /usr/adm/acct/nite/ctmp. 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. DESCRIPTION chargefee charges number units to login-name and writes a record to /usr/adm/fee, to merge with other accounting records during the night. 2 January 1992



acctsh(1M) acctsh(1M)
ckpacct should be initiated with cron(1M). It periodically checks the size of /usr/adm/pacct. If the size exceeds amt, 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 should be invoked by cron to perform disk accounting on the special files in /etc/checklist. lastlogin is invoked by runacct (1M) to update /usr/adm/acct/sum/loginlog, which shows the last date each person logged in. monacct should be invoked once a month or once an accounting period. Note: Text can be substituted for the month argument. monacct creates summary files in /usr/adm/acct/fiscal and restarts summary files in /usr/adm/acct/sum. nulladm creates name with mode 664 and owner and group adm. Various accounting shell procedures call this file. prctmp prints the session record file (normally /usr/adm/acct/nite/ctmp) created by acctcon1 (see acctcon(1M)). prdaily is invoked by runacct (1M) to format a report of the previous 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 accounting reports. prtacct formats and prints any total accounting (tacct) file. shutacct should be invoked during a system shutdown (usually in /etc/shutdown) to turn process accounting off and append a reason record to /etc/wtmp. startup is called by /etc/rc to turn accounting on when the system is brought up. turnacct is an interface to accton (see acct(1M)) which turns process accounting on or off. The ckpacct command calls this procedure, and thus cron can use it to keep pacct to reasonable size. January 1992 3



acctsh(1M) acctsh(1M)
FILES /usr/lib/acct/chargefee Executable file /usr/lib/acct/ckpacct Executable file /usr/lib/acct/dodisk Executable file /usr/lib/acct/lastlogin Executable file /usr/lib/acct/monacct Executable file /usr/lib/acct/nulladm Executable file /usr/lib/acct/prctmp Executable file /usr/lib/acct/prdaily Executable file /usr/lib/acct/prtacct Executable file /usr/lib/acct/shutacct Executable file /usr/lib/acct/startup Executable file /usr/lib/acct/turnacct Executable file /usr/adm/fee Accumulator file for fees /usr/adm/pacct Current file for per-process accounting /usr/adm/pacct* Files used if pacct gets large and when executing daily accounting procedure /etc/wtmp Login/logoff summary file /usr/lib/acct/ptelus.awk File containing the limits for exceptional usage by login ID /usr/lib/acct/ptecms.awk File containing the limits for exceptional usage by command name /usr/adm/acct/nite Working directory /usr/lib/acct Directory containing all accounting commands /usr/adm/acct/sum Summary directory SEE ALSO acctcom(1M), acct(1M), acctcms(1M), acctcon(1M), acctmerg(1M), acctprc(1M), cron(1M), diskusg(1M), fwtmp(1M), brc(1M), runacct(1M), shutdown(1M) 4 January 1992



acctsh(1M) acctsh(1M)
acct(2), acct(4), utmp(4) in A/UX Programmer's Reference January 1992 5

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026