Installation guide
hoff 200.43
hermi 157.81
total 1968.02
The total connect time for all users listed is shown in the last line.
12.4.5 The acctcon1 Command
The acctcon1 command converts binary session records from a file with
the utmp.h header file structure to ASCII format. A single record is
produced for each connect session. The runacct shell script uses the
acctcon1 command to create the lineuse and reboots files, which are
included in the /var/adm/acct/sum/rprt
mmdd
daily report.
The acctcon1 command has the following syntax:
/usr/sbin/acct/acctcon1
[-l file][−o file][−pt]
You must direct a file as input to the command. Refer to the acctcon1(8)
reference page for information on command options.
The following command line provides an example of a
/var/adm/acct/nite/lineuse file. It writes records to the specified file
in ASCII line-usage format, which helps you to track line usage and to
identify bad lines; and it includes the reference designation of the ports
that the user logged in to and the date and time stamp of the currently
active connect session.
# acctcon1 −l line_file < /var/adm/wtmp | more line_file
TOTAL DURATION IS 57 MINUTES
LINE MINUTES PERCENT # SESS # ON # OFF
pty/ttyp4 37 64 3 3 7
console 26 45 2 2 4
pty/ttyp5 7 11 1 1 3
pty/ttyp6 0 0 0 0 2
TOTALS 69 - 6 6 16
In the previous example, the ASCII line-usage format specifies the
following:
• Total number of minutes that the system was in multiuser state
• The line name
• The number of session minutes used during the accounting period
• The ratio of minutes in use to the total duration
• The number of times the port was accessed (fourth and fifth columns)
• The number of logouts and any other interrupts on the line
12–18 Administering the System Accounting Services