acctcon(1M) acctcon(1M)NAME acctcon1, acctcon2 - invoke connect-time accounting SYNOPSIS acctcon1 [-lfile] [-ofile] [-p] [-t] acctcon2 ARGUMENTS -lfile Creates file showing the following line usage summary: line name, number of minutes used, percentage of total elapsed time used, number of sessions charged, number of logins, and number of logoffs. This file tracks line usage, identifies bad lines, and finds software and hardware oddities. Hanging-up, terminating login(1), and terminating the login shell each generate logoff records, so the number of logoffs is often three to four times the number of sessions. See init(1M) and utmp(4). -ofile Fills file with an overall record for the accounting period: starting time, ending time, number of reboots, and number of date changes. -p Print input only: line name, login name, and time (in both numeric and date/time formats). -t Causes acctcon1 to use the last time found in its input, instead of the current time, thus assuring reasonable and repeatable numbers for noncurrent files. DESCRIPTION acctcon1 reads a sequence of login/logoff records from its standard input (redirected from /etc/wtmp) and converts them to a sequence of records, one per login session, giving the following ASCII output: device, user ID, login name, prime connect time (seconds), nonprime connect time (seconds), session starting time (numeric), and starting date and time. The acctcon1 command maintains a list of lines on which users are logged in. When it reaches the end of its input, it emits a session record for each line 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. acctcon2 reads a sequence of login sessions and converts them into total accounting records (see tacct format in acct(4)). January 1992 1
acctcon(1M) acctcon(1M)EXAMPLE These commands are typically used as shown below. The file ctmp is created only for acctprc(1M) commands: acctcon1 -t -l lineuse -o reboots < wtmp | sort +1n +2 > ctmp acctcon2 < ctmp | acctmerg > ctacct LIMITATIONS Date changes confuse the line usage report. Use wtmpfix (see fwtmp(1M)) to correct this. FILES /usr/lib/acct/acctcon1 Executable file /usr/lib/acct/acctcon2 Executable file /etc/wtmp Login/logoff summary file /usr/lib/acct/holidays File containing list of holidays SEE ALSO acctcom(1M), acct(1M), acctcms(1M), acctmerg(1M), acctprc(1M), acctsh(1M), fwtmp(1M), runacct(1M), init(1M) login(1) in A/UX Command Reference acct(2), acct(4), utmp(4) in A/UX Programmer's Reference 2 January 1992