02.07.2013 Views

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

acctcon( <strong>1M</strong>) acctcon(IM)<br />

NAME<br />

acctconl, acctcon2 - connect-time accounting<br />

SYNOPSIS<br />

/usr/1ib/acct/acctconl [-lfile] [-ofile] [-p] [-t]<br />

/usr/1ib/acct/acctcon2<br />

DESCRIPTION<br />

acctconl reads a sequence of login/logoff records from its st<strong>and</strong>ard<br />

input (redirected from / etc/wtmp) <strong>and</strong> converts them to a<br />

sequence of records, one per login session, giving the following<br />

ASCII output: device, user ID, login name, prime connect time<br />

(seconds), nonprime connect time (seconds), session starting time<br />

(numeric), <strong>and</strong> starting date <strong>and</strong> time. The flag options are:<br />

-1 file create file showing the following line usage summary:<br />

line name, number of minutes used, percentage<br />

of total elapsed time used, number of sessions<br />

charged, number of logins, <strong>and</strong> number of logoffs.<br />

This file tracks line usage, identifies bad lines, <strong>and</strong><br />

finds software <strong>and</strong> hardware oddities. Hanging-up,<br />

terminating 10gin(I), <strong>and</strong> terminating the login<br />

shell each generate logoff records, so the number of<br />

logoffs is often three to four times the number of<br />

sessions. See init(lM) <strong>and</strong> utmp(4).<br />

-0 file<br />

-p<br />

-t<br />

fills file with an overall record for the accounting<br />

period: starting time, ending time, number of reboots,<br />

<strong>and</strong> number of date changes.<br />

print input only: line name, login name, <strong>and</strong> time<br />

(in both numeric <strong>and</strong> date/time formats).<br />

acctconl maintains a list of lines on which users<br />

are logged in. When it reaches the end of its input,<br />

it emits a session record for each line that still appears<br />

to be active. It normally assumes that its input<br />

is a current file, so that it uses the current time<br />

as the ending time for each session still in progress.<br />

The -t flag causes it to use, instead, the last time<br />

found in its input, thus assuring reasonable <strong>and</strong> repeatable<br />

numbers for non-current files.<br />

acctcon2 reads a sequence of login session <strong>and</strong> converts them<br />

into total accounting records (see tacct format in acct(4)).<br />

February, 1990 1<br />

Revision C

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!