unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (SunOS-4.1.3)
Page:
Section:
Apropos / Subsearch:
optional field

FWTMP(8)                    System Manager's Manual                   FWTMP(8)



NAME
       fwtmp, wtmpfix - manipulate connect accounting records

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

       /usr/lib/acct/wtmpfix [ filename...  ]

DESCRIPTION
   fwtmp
       fwtmp  reads from the standard input and writes to the standard output,
       converting binary records of the type found in wtmp to formatted  ASCII
       records.   The  ASCII  version is useful to enable editing bad records,
       using a text editor, or general purpose maintenance of the file.

   wtmpfix
       wtmpfix examines the standard input or named files in wtmp format, cor-
       rects  the  time/date stamps to make the entries consistent, and writes
       to the standard output.  A `-' can be used  in  place  of  filename  to
       indicate  the  standard  input.   If time/date corrections are not per-
       formed, acctcon1 fails when it encounters certain date-change records.

       Each time the date is set, a pair of date change records are written to
       /var/adm/wtmp.   The first record is the old date denoted by the string
       `|' placed in the line field of the  <&lt;utmp.h>&gt;  structure.   The  second
       record  specifies  the new date and is denoted by the string `{' placed
       in the line field.  wtmpfix uses these records to synchronize all  time
       stamps in the file.

       In addition to correcting time/date stamps, wtmpfix checks the validity
       of the name field to ensure that it  consists  solely  of  alphanumeric
       characters  or  SPACE characters.  If it encounters a name that is con-
       sidered invalid, it changes the login name  to  INVALID  and  writes  a
       diagnostic message to the standard error.  In this way, wtmpfix reduces
       the chance that acctcon1 will fail when processing  connect  accounting
       records.

OPTIONS
   fwtmp
       -c     Write output in binary form.

       -i     Input is in ASCII form.

FILES
       /var/adm/wtmp

SEE ALSO
       acctcom(1),  acct(2V),  acct(5),  utmp(5V),  acct(8), acctcms(8), acct-
       con(8), acctmerg(8), acctprc(8), acctsh(8), runacct(8)



                                17 January 1990                       FWTMP(8)