admaccounting(1M) DG/UX 5.4.2 admaccounting(1M)
NAME
admaccounting - manage accounting system
SYNOPSIS
admaccounting -o start|stop|check
admaccounting -o list -r { cmd | user } [ -l line-limit ] [ -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.
-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.
-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.
-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
Licensed material--property of copyright holder(s) 1
admaccounting(1M) DG/UX 5.4.2 admaccounting(1M)
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 super-user 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.
Licensed material--property of copyright holder(s) 2