ACCTCON1, ACCTCON2(8,C) AIX Commands Reference ACCTCON1, ACCTCON2(8,C) ------------------------------------------------------------------------------- acctcon1, acctcon2 PURPOSE Performs connect-time accounting. SYNTAX +-------------+ /usr/lib/acct/acctcon1 ---| +---------+ |---| +-| -l file |-+ | -o file | | -p | | -t | +---------+ /usr/lib/acct/acctcon2 ---| DESCRIPTION acctcon1 The acctcon1 command converts a sequence of login and logout records (read from standard input) to a sequence of login session records (written to standard output). Its input should normally be redirected from /usr/adm/wtmp. The acctcon1 command displays, in ASCII format, the login device, user ID, login name, prime connect time (seconds), nonprime connect time (seconds), session starting time (numeric), and starting date and time (in date/time format). It also maintains a list of ports on which users are logged in. When it reaches the end of its input, it writes a session record for each port that still appears to be active. It normally assumes that its input is a current file, so that it uses the current time as the ending time for each session still in progress (see the -t flag on page 2). FLAGS -l file Writes to file a line-usage summary showing the line name, the number of minutes used, the percentage of total elapsed time used, the number of sessions charged, the number of logins, and the number of logouts. This file helps track line usage and identify bad lines. All hang-ups, terminations of login, and terminations of the login shell cause the system to write logout records, so the number of logouts is often much higher than the number of sessions. Processed November 8, 1990 ACCTCON1, ACCTCON2(8,C) 1 ACCTCON1, ACCTCON2(8,C) AIX Commands Reference ACCTCON1, ACCTCON2(8,C) -o file Writes to file an overall record for the accounting period, giving starting time, ending time, number of restarts, and number of date changes. -p Displays input only, showing line name, login name, and time in both numeric and date/time formats. -t Uses the last time found in the input as the ending time for any current processes instead of the current time. This is necessary in order to have reasonable and repeatable values for noncurrent files. acctcon2 The acctcon2 command converts a sequence of login session records, produced by the acctcon1 command, into total accounting records. FILES /usr/adm/wtmp Login/logout history file. RELATED INFORMATION See the following commands: "acctdisk, acctdusg," "acctcms," "acctcom," "acctmerg," "acctprc1, acctprc2, accton," "acct/*," "fwtmp, wtmpfix, acctwtmp," "init, telinit," "login," and "runacct." See the acct system call and the acct and utmp files in AIX Operating System Technical Reference. See "Running System Accounting" in Managing the AIX Operating System. Processed November 8, 1990 ACCTCON1, ACCTCON2(8,C) 2