Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fwtmp(1) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

acct

acctcms

acctcom

acctcon

acctdisk, acctdusg

acctmerg

acctprc

runacct

acct system call

the acct

utmp

fwtmp

PURPOSE

     Manipulates connect accounting records.

SYNOPSIS
     /usr/lib/acct/fwtmp [ -c ]

     /usr/lib/acct/wtmpfix [ file ]

     /usr/lib/acct/acctwtmp "reason"

DESCRIPTION

       fwtmp

     The fwtmp command reads  wtmp records from standard input
     and converts  them to  formatted ASCII records,  which it
     writes to standard output.

     FLAG

     -ic Reads ASCII input and writes output in binary form.

       acctwtmp

     The  acctwtmp command  writes to  standard output  a utmp
     record containing the string  reason and the current date
     and time.  A reason can contain 11 or fewer characters.

       wtmpfix

     The wtmpfix command examines  standard input or the named
     files  containing records  in wtmp  format, corrects  the
     date and time stamps to  make the entries consistent, and
     writes the  corrected input  to standard output.   (It is
     necessary that date and time stamps be consistent because
     acctcon1 generates an error  and stops when it encounters
     inconsistent date change records.)

     Each time the date is set  (on system startup or with the
     date command) a pair of date change records is written to
     /usr/adm/wtmp.  The first record is the old date, denoted
     by the string  old time placed in the line  field and the
     flag  OLD_TIME  placed in  the  type  field.  The  second
     record is  the new date,  denoted by the string  new time
     placed in the line field  and the flag NEW_TIME placed in

     the type  field.  The wtmpfix command  uses these records
     to synchronize all date and time stamps in the file.

     In addition  to correcting date and  time stamps, wtmpfix
     checks the validity  of the name field to  ensure that it
     consists solely of alphanumeric characters, a dollar sign
     ("$"), or spaces.   If it encounters an  invalid name, it
     changes the login name to INVALID and writes a diagnostic
     to  standard error.   In  this way,  wtmpfix reduces  the
     chance that acctcon2 will  fail when it processes connect
     accounting records.

FILES

     /usr/adm/wtmp          Contains  records of  date changes
                            that include an old date and a new
                            date.
     /usr/include/utmp.h    Contains   history  records   that
                            include a reason, date, and time.

RELATED INFORMATION

     The following commands:   "acct,"  "acctcms," "acctcom,"
     "acctcon,"  "acctdisk, acctdusg," "acctmerg,"  "acctprc,"
     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