accting(8) CLIX accting(8)
NAME
accting - Overall accounting program
SYNOPSIS
accting [-bdDfFsltnWCUh] [-cfile] [-uuser[,user2 ... ]] [-atime] [-ztime]
[-pfilename] [-Pfilename]
FLAGS
-a starttime Uses no records in the accounting file that occur before the
specified starttime.
-b Creates a brief report by user of the user ID, group ID,
username, and total elapsed time (wall clock time, not CPU
time) for all users of the system.
-c filename Uses the specified raw auditd file when generating a
detailed report. This flag is used only with the -d flag.
-C Reports the total elapsed CPU time by project.
-d Generates a detailed report, which shows what a user did at
what time. It follows a user through user ID changes (for
example, the use of the su command). If used with the -c
flag, the report also contains all the files used by a user
during a session. The -u flag must be used with this flag.
-D Dumps the records in the accounting file. The records are
sorted by beginning time. This flag cannot be used with
these flags: -b, -f, -d, -t, -u, -W, -C, and -U.
-f Creates a full report of CPU time memory usage, number of
characters transferred, and number of reads or writes, in
addition to the information contained in the brief report.
-F Lists all failed logins.
-h Displays a help screen.
-l Lists the last login times of the users on the system.
-L directory Specifies an alternate directory to search for the
console.log file.
-n Gets the accounting file from another system and places it
on the current system in the /usr/tmp/pacct file. It then
uses this file in generating accounting reports. The user
is then prompted for the nodename, username, and password.
2/94 - Intergraph Corporation 1
accting(8) CLIX accting(8)
-p filename Uses the specified file as the accounting file. This file
must be in acct format.
-P filename Uses the specified file as the project accounting file.
This file must be in appl_acct format. This flag must be
used with the -W, -C, and -U flags.
-s Displays the /usr/adm/sulog file.
-t Sorts the report by elapsed time from the largest amount of
time to the smallest.
-u user, ... Generates a report based on the specified users.
-U Reports by user the total elapsed wall clock time spent per
project.
-W Reports the total elapsed wall clock time by project.
-z endtime Uses no records in the accounting file that occur after the
specified endtime.
DESCRIPTION
The accting command generates system accounting reports. It reads various
files and formats the output according to the specified flags.
EXAMPLES
1. This example generates a report of all users' elapsed wall clock time
versus CPU time on the system.
accting
2. This example reports the elapsed wall clock time of users rover and
fido.
accting -b -u rover,fido
3. This example reports on all failed login attempts since the system was
last booted.
accting -F
FILES
/usr/adm/pacct Process accounting file.
2 Intergraph Corporation - 2/94
accting(8) CLIX accting(8)
/usr/tmp/pacct Temporary process accounting file.
/usr/adm/sulog The superuser, su, log file.
/tmp/console.log The console log file.
/usr/adm/appl_acct Project accounting file.
NOTES
Because of the files used as input, the user must be logged in as root to
run this command.
EXIT VALUES
The accting command exits with a value of 1 if a problem is encountered
while reading any of the input files.
RELATED INFORMATION
Commands: auditd(8), su(8)
Files: acct(4), adt(7), appl_acct(4), project(4)
2/94 - Intergraph Corporation 3