Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

acctcom(1)

acct(1M)

acctcms(1M)

acctcon(1M)

acctmerg(1M)

acctprc(1M)

cron(1M)

diskusg(1M)

fwtmp(1M)

runacct(1M)

acct(2)

acct(4)

utmp(4)



     acctsh(1M)                                             acctsh(1M)



     NAME
          chargefee, ckpacct, dodisk, lastlogin, monacct, nulladm,
          prctmp, prdaily, prtacct, runacct, 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] [files ...]

          /usr/lib/acct/lastlogin

          /usr/lib/acct/monacct number

          /usr/lib/acct/nulladm file

          /usr/lib/acct/prctmp

          /usr/lib/acct/prdaily [-l] [-c] [mmdd]

          /usr/lib/acct/prtacct file [heading]

          /usr/lib/acct/runacct [mmdd] [mmdd state]

          /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 re-activates 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.



     Page 1                                        (last mod. 1/15/87)





     acctsh(1M)                                             acctsh(1M)



          -o   do a slower version of disk accounting by login
               directory.

          files
               specify one or more filesystems to do disk accounting
               on.  If you use files, disk accounting will only be
               done on these filesystems.  If you use the -o flag,
               files should be mount points of mounted filesystems.
               If omitted, they should be the special file names of
               mountable filesystems.

        lastlogin
          runacct 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.

          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 invokes prdaily 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.

          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.

          -c   prints a report of exceptional resource usage by



     Page 2                                        (last mod. 1/15/87)





     acctsh(1M)                                             acctsh(1M)



               command.  You can only use this on the current day's
               accounting data.

        prtacct
          prtacct formats and prints any total accounting (tacct)
          file.

        runacct
          runacct accumulates connect, process, fee, and disk
          accounting daily.  It also summarizes command use.  For more
          information, see runacct(1M).

        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/adm/fee                accumulator for fees

          /usr/adm/pacct              current file for per-process
                                      accounting

          /usr/adm/pacct*             used if pacct gets large and
                                      when executing daily accounting
                                      procedure

          /etc/wtmp                   login/logoff summary

          /usr/lib/acct/ptelus.awk    contains the limits for
                                      exceptional usage by login ID

          /usr/lib/acct/ptecms.awk    contains the limits for
                                      exceptional usage by command
                                      name

          /usr/adm/acct/nite          working directory




     Page 3                                        (last mod. 1/15/87)





     acctsh(1M)                                             acctsh(1M)



          /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),
          runacct(1M), acct(2), acct(4), utmp(4).












































     Page 4                                        (last mod. 1/15/87)



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