1fwtmp(1M)               System Administration Commands               fwtmp(1M)
2
3
4

NAME

6       fwtmp, wtmpfix - manipulate connect accounting records
7

SYNOPSIS

9       /usr/lib/acct/fwtmp [-ic]
10
11
12       /usr/lib/acct/wtmpfix [file]...
13
14

DESCRIPTION

16       fwtmp  reads from the standard input and writes to the standard output,
17       converting binary records of the type found in /var/adm/wtmpx  to  for‐
18       matted  ASCII records. The ASCII version is useful when it is necessary
19       to edit  bad records.
20
21
22       wtmpfix examines the standard input or named  files  in  utmpx  format,
23       corrects  the  time/date  stamps  to  make  the entries consistent, and
24       writes to the standard output. A hyphen () can be  used  in  place  of
25       file  to  indicate the standard input. If time/date corrections are not
26       performed, acctcon(1M) will fault  when  it  encounters  certain  date-
27       change records.
28
29
30       Each time the date is set, a pair of date change records are written to
31       /var/adm/wtmpx. The first record is the old date denoted by the  string
32       "old time" placed in the line field and the flag OLD_TIME placed in the
33       type field of the utmpx structure. The second record specifies the  new
34       date and is denoted by the string new time placed in the line field and
35       the flag NEW_TIME placed in the type field. wtmpfix uses these  records
36       to synchronize all time stamps in the file.
37
38
39       In  addition  to  correcting  time/date  stamps, wtmpfix will check the
40       validity of the name  field  to  ensure  that  it  consists  solely  of
41       alphanumeric characters or spaces. If it encounters a name that is con‐
42       sidered invalid, it will change the login name to INVALID and  write  a
43       diagnostic  to  the  standard  error.  In this way, wtmpfix reduces the
44       chance that  acctcon  will  fail  when  processing  connect  accounting
45       records.
46

OPTIONS

48       -ic    Denotes that input is in ASCII form, and output is to be written
49              in binary form.
50
51

FILES

53       /var/adm/wtmpx    history of user access and administration information
54
55

ATTRIBUTES

57       See attributes(5) for descriptions of the following attributes:
58
59
60
61
62       ┌─────────────────────────────┬─────────────────────────────┐
63       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
64       ├─────────────────────────────┼─────────────────────────────┤
65       │Availability                 │SUNWaccu                     │
66       └─────────────────────────────┴─────────────────────────────┘
67

SEE ALSO

69       acctcom(1), ed(1), acct(1M),  acctcms(1M),  acctcon(1M),  acctmerg(1M),
70       acctprc(1M), acctsh(1M), runacct(1M), acct(2), acct.h(3HEAD), utmpx(4),
71       attributes(5)
72
73
74
75
76
77
78SunOS 5.11                        22 Feb 1999                        fwtmp(1M)
Impressum