Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ admaccounting(1M) — DG/UX 5.4R3.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

acct(1M)

acctcms(1M)

acctsh(1M)

prtacct(1M)

sysadm(1M)



admaccounting(1M)              DG/UX 5.4R3.00              admaccounting(1M)


NAME
       admaccounting - manage accounting system

SYNOPSIS
       admaccounting -o start|stop|check

       admaccounting -o list -r { cmd | user } [ -l line-limit ]
                           [ -d mmdd | -m mm ] [ -qv ]

DESCRIPTION
       The admaccounting command is used to manage system accounting,
       including starting and stopping system accounting and producing any
       of several accounting reports.

       More information about the accounting system can be obtained from
       acct(1M) and related manual entries.

   Operations
       start     Enable system accounting, if not already enabled.

       stop      Disable system accounting, if enabled.

       check     Determine whether or not system accounting is enabled.  The
                 exit code is 0 if the accounting system is enabled and 1 if
                 the accounting system is not enabled.

       list      Display an accounting report.

   Options
       The following options are allowed for the list operation.

       -d mmdd   Display the report for a specific date mmdd where mm is the
                 month number and dd is the day number in the month.
                 Default is to display the cumulative report for the current
                 period.

       -l line-limit
                 Display up to line-limit lines of the report.  This limit
                 does not include the headers which may precede the report
                 or the totals which follow the report.

       -m mm     Display the report for a specific month where mm is the
                 month number.  Default is to display the cumulative report
                 for the current period.

       -q        Use quiet mode.  Headers are not displayed for the list
                 operation.

       -r report-type
                 An identification of the type of accounting report.

                 If the report-type is cmd, a command usage report is
                 displayed.  If the report-type is user, a report of user
                 logins is displayed.



Licensed material--property of copyright holder(s)                         1




admaccounting(1M)              DG/UX 5.4R3.00              admaccounting(1M)


       -v        Use verbose mode.  Headers are displayed for the list
                 operation.  This mode is enabled by default.

EXAMPLES
       To start system accounting, use

            admaccounting -o start

       To get a report of the 30 most time-consuming commands run on the
       system, use

            admaccounting -o list -r cmd -l 30 -v


FILES
       /etc/log/account.rclock
                             Lock file that indicates whether system
                             accounting is enabled.

DIAGNOSTICS
   Warnings
       A warning message is printed on an attempt to start the accounting
       system if it is already started, or to stop it if it is not running.

   Errors
       The accounting system may produce error indications.  See the
       accounting system documentation for descriptions of error conditions.

   Exit Codes
        0     The operation was successful.

        1     The operation was unsuccessful.

        2     The operation failed due to access restrictions.

        3     There was an error in the command line.

SEE ALSO
       acct(1M), acctcms(1M), acctsh(1M), prtacct(1M), sysadm(1M).

NOTES
       Only the superuser may start or stop the accounting system.

       The behavior of the start, stop, and check operations is unreliable
       if you start or stop accounting by using startup(1M) or turnacct(1M)
       directly.

       If the -d and -m options are both used, -d supersedes -m.  If more
       than one date (or month) is specified with the -d (or -m option), the
       last specification will be the one used.







Licensed material--property of copyright holder(s)                         2


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