Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ acctcon(1) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

acctdisk, acctdusg

acctcms

acctcom

acctmerg

acctprc

acct

fwtmp

init

login

runacct

acct system call

the acct

utmp

acctcon

PURPOSE

     Performs connect-time accounting.

SYNOPSIS
     /usr/lib/acct/acctcon1 [-io[file]] [-pt]

     /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 ).

     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 iden-
          tify  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 ses-
          sions.
     -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

     The    following   commands:     "acctdisk,   acctdusg,"
     "acctcms,"  "acctcom,"  "acctmerg,"   "acctprc," "acct,"
     "fwtmp,"  "init," "login," and  "runacct."

     The acct system  call and the acct and utmp  files in AIX
     Operating System Technical Reference.

     "Running System Accounting" in Managing the AIX Operating
     System.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026