Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ nulladm(1m) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                               acctsh(1m)



        _________________________________________________________________
        chargefee, ckpacct, dodisk, lastlogin, monacct, nulladm,
        prctmp, prdaily, prtacct, shutacct, startup, turnacct
        shell procedures for accounting
        _________________________________________________________________


        SYNTAX

        /usr/lib/acct/chargefee login-name number

        /usr/lib/acct/ckpacct [blocks]

        /usr/lib/acct/dodisk

        /usr/lib/acct/lastlogin

        /usr/lib/acct/monacct number

        /usr/lib/acct/nulladm file

        /usr/lib/acct/prctmp

        /usr/lib/acct/prdaily [mmdd]

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

        /usr/lib/acct/shutacct [ "reason" ]

        /usr/lib/acct/startup

        /usr/lib/acct/turnacct on " | " off " | " switch


        DESCRIPTION

        You can invoke chargefee to charge a number of units to login-
        name.  A record is written to /usr/adm/fee, to be merged with
        other accounting records during the night.

        Initiate ckpacct via cron(1M).  It periodically checks the size
        of /usr/adm/pacct.  If the size exceeds blocks, 1000 by default,
        turnacct is invoked with argument switch.  If the number of free
        disk blocks in the /usr file system falls below 500, ckpacct
        automatically turns off the collection of process accounting
        records via the off argument to turnacct.  When at least 500
        blocks are restored, accounting is reactivated.  This feature is
        sensitive to the frequency at which ckpacct is executed, usually
        by cron.

        Invoke dodisk by cron to perform the disk accounting functions.



        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)





                                                               acctsh(1m)



        The disk accounting functions keep track of disk usage by user.
        By default, disk accounting is performed on special files in
        /etc/fstab.

        Lastlogin is invoked by runacct (see runacct(1M)) to update
        /usr/adm/acct/sum/loginlog, which shows the last date each person
        logged in.

        Invoke monacct once each month or each accounting period.  Number
        indicates which month or period it is.  If you omit number, it
        defaults to the current month (01-12).  This default is useful if
        monacct is executed via cron(1M) 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 creates file with mode 664 and ensures that owner and
        group are adm.  It is called by accounting shell procedures.

        Prctmp prints the session record file (normally
        /usr/adm/acct/nite/ctmp) created by acctcon1 (see acctcon(1M)).

        Prdaily is invoked by runacct (see runacct(1M)) to format a
        report of the previous day's accounting data.  The report resides
        in /usr/adm/acct/sum/rprtmmdd, where mmdd is the month and day of
        the report.  You can print the current daily accounting reports
        by typing prdaily.  To print a previous day's accounting reports,
        use the mmdd option and specify the report date.

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

        During a system shutdown, you should invoke shutacct (usually in
        /etc/shutdown) to turn process accounting off and append a
        ``reason'' record to /etc/wtmp.

        To turn accounting on when the system is brought up, call startup
        with /etc/rc.

        Turnacct is an interface to accton (see acct(1M)) to turn process
        accounting on or off.  The switch argument turns accounting off,
        moves the current /usr/adm/pacct to the next free name in
        /usr/adm/pacctincr, then turns accounting back on again.  Incr is
        a number starting with 1 and increasing by one for each
        additional pacct file.  Since ckpacct calls this procedure, cron
        can maintain it and keep pacct to a 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 during



        DG/UX 4.00                                                 Page 2
               Licensed material--property of copyright holder(s)





                                                               acctsh(1m)



                                  execution of daily accounting procedure.
        /etc/wtmp                 Login/logoff summary.
        /usr/adm/acct/nite        Working directory.
        /usr/lib/acct             Holds all accounting commands listed
                                  in Chapter 1M of this manual.
        /usr/adm/acct/sum         Summary directory, should be saved.


        SEE ALSO

        acct(1M), acctcms(1M), acctcom(1), acctcon(1M), acctmerg(1M),
        acctprc(1M), cron(1M), fwtmp(1M), runacct(1M), acct(2), acct(4),
        utmp(4).









































        DG/UX 4.00                                                 Page 3
               Licensed material--property of copyright holder(s)



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