HP B2355-92068 Administration Manual page 34

System administration commands
Table of Contents

Advertisement

acctcon(1M)
NAME
acctcon, acctcon1, acctcon2 - connect-time accounting
SYNOPSIS
/usr/sbin/acct/acctcon
a
/usr/sbin/acct/acctcon1
/usr/sbin/acct/acctcon2
DESCRIPTION
The
acctcon1
sequence of records, one per login session. Its input should normally be redirected from
or
/var/adm/wtmps
(seconds), non-prime connect time (seconds), session starting time (numeric), and starting date and time.
Prime connect time is defined as the connect time within a specific prime period on a non-holiday weekday
(Monday through Friday). The starting and ending time of the prime period and the year's holidays are
defined in file
acctcon2
them into total accounting records (see
combines the functionality of
acctcon
input format as
acctcon1
-p
-t
acctcon1
file
-l
file
-o
-W
EXAMPLES
These commands are typically used as shown below. The file
described by the acctprc(1M) manual entry:
acctcon1 -t -l lineuse -o reboots < wtmp | sort +1n +2 > ctmp
acctcon2 < ctmp | acctmerg > ctacct
or
acctcon -t -l lineuse -o reboots < wtmp | acctmerg > ctacct
With
option:
-W
acctcon1 -W -t -l lineuse -o reboots < wtmps | sort +1n +2 > ctmp
acctcon2 < ctmp | acctmerg > ctacct
or
34
Hewlett-Packard Company
[ options ]
[ options ]
command converts a sequence of login/logoff records read from its standard input to a
. Its output is ASCII, giving device, user ID, login name, prime connect time
/etc/acct/holidays
expects as input a sequence of login session records, produced by
tacct
and writes the same output as
acctcon1
recognizes the following options:
Print input only, showing line name, login name, and time (in both numeric and
date/time formats).
maintains a list of lines on which users are logged in. When it reaches
acctcon1
the end of its input, it emits a session record for each line 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. The
instead, the last time found in its input, thus ensuring reasonable and repeatable
numbers for non-current files.
and
acctcon
recognize the following options:
file is created to contain a summary of line usage showing line name, number of
minutes used, percentage of total elapsed time used, number of sessions charged,
number of logins, and number of logoffs. This file helps track line usage, identify bad
lines, and find software and hardware oddities. Hang-up, termination of
login(1)), and termination of the login shell each generate logoff records, so that the
number of logoffs is often three to four times the number of sessions. See init(1M)
and utmp(4).
file is filled with an overall record for the accounting period, giving starting time, end-
ing time, number of reboots, and number of date changes.
When this option is used, the records of the type found in
read from the specified input.
.
format in acct(4)).
and
acctcon1
acctcon2
acctcon2
ctmp
is created only for the use of commands
− 1 −
HP-UX 11i Version 2: December 2007 Update
acctcon(1M)
/var/adm/wtmp
acctcon1
, and converts
into one program. It takes the same
.
flag causes it to use,
-t
login
/var/adm/wtmps
(see
, are

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp-ux 11i

Table of Contents