United States-English |
|
|
HP-UX Reference > Aacctcon(1M)HP-UX 11i Version 3: February 2007 |
|
NAMEacctcon, acctcon1, acctcon2 — connect-time accounting DESCRIPTIONThe acctcon1 command converts a sequence of login/logoff records read from its standard input to a sequence of records, one per login session. Its input should normally be redirected from /var/adm/wtmp or /var/adm/wtmps. Its output is ASCII, giving device, user ID, login name, prime connect time (seconds), non-prime connect time (seconds), session starting time (numeric), and starting date and time. Prime connect time is defined as the connect time within a specific prime period on a non-holiday weekday (Monday through Friday). The starting and ending time of the prime period and the year's holidays are defined in file /etc/acct/holidays. acctcon2 expects as input a sequence of login session records, produced by acctcon1, and converts them into total accounting records (see tacct format in acct(4)). acctcon combines the functionality of acctcon1 and acctcon2 into one program. It takes the same input format as acctcon1 and writes the same output as acctcon2. acctcon1 recognizes the following options:
acctcon1 and acctcon recognize the following options:
EXAMPLESThese commands are typically used as shown below. The file ctmp is created only for the use of commands described by the acctprc(1M) manual entry: acctcon1 -t -l lineuse -o reboots < wtmp | sort +1n +2 > ctmp acctcon2 < ctmp | acctmerg > ctacct or acctcon -t -l lineuse -o reboots < wtmp | acctmerg > ctacct With -W option: acctcon1 -W -t -l lineuse -o reboots < wtmps | sort +1n +2 > ctmp acctcon2 < ctmp | acctmerg > ctacct or acctcon -W -t -l lineuse -o reboots < wtmps | acctmerg > ctacct Note:The file wtmps can be either /var/adm/wtmps or a file containing records of the type found in /var/adm/wtmps. WARNINGSThe line usage report is confused by date changes. Use wtmpfix (see fwtmp(1M)) to correct this situation. SEE ALSOlogin(1), acct(1M), acctcms(1M), acctcom(1M), acctmerg(1M), acctprc(1M), acctsh(1M), fwtmp(1M), init(1M), utmpd(1M), runacct(1M), acct(2), getbwent(3C), acct(4), utmp(4). |
Printable version | ||
|