SUMMARY: ac commans of sunos

From: Elena Gianolio (gianolio@ptsun00.cern.ch)
Date: Wed Sep 11 1996 - 03:24:28 CDT


Hello

thanks to all who answer:
Rasana Atreya
Benjamin Cline
Kevin Sheehan
David Procter
Ray Trzaska
Danny Johnson

I didn't find the equivalent of the ac command of sunos in solaris ...

anyway
here the original question:
>
> Hello,
> does anybody know the equivalence of the command "ac" of sunos
> for solaris?
>
> NAME
> ac - print statistics about users' connect time
>
> DESCRIPTION
> ac prints out a report of connect time (in hours) based on
> the logins/logouts in the current /var/adm/wtmp file. A to-
> tal is also printed out.
>
>
>
> thanks
> elena

to give more dettails here an example:
{athena} /homedir/gianolio> ac -p
        root 19.35
        gianolio8041.14 |
        mcosta 71.00 |---> users total time of use of the machine
        guest 0.01 |
        marchior 0.15
        dufey 1.99
        arai 0.01
        christia 19.45
        cds 0.84
        biz 0.16
        pmoreira 0.00
        total 8154.09

some suggestions:
> From: Rasana Atreya <Rasana.Atreya@library.ucsf.edu>
>
> Try "man sar"
>

> From: Benjamin Cline <benji@hnt.com>
>
> Will acctcon(1M) do what you want?
>

> From: Kevin.Sheehan@uniq.com.au (Kevin Sheehan {Consulting Poster Child})
>
> last would be the closest thing I can think of. You might want to
> roll your own. I have some summary software, but it operates on the
> accounting files for performance analysis, not wtmp* for connect time.
>

>
> From: daveyp@dcd.pcd.sony.co.uk (David Procter)
> >
> How about /usr/lib/acct/acctcon (see 'man acctcon') ?
>

>
> From: rtrzaska@uk.mdis.com (Ray Trzaska)

> acctcon(1M) Maintenance Commands acctcon(1M)
>
> NAME
> acctcon, acctcon1, acctcon2 - connect-time accounting
>
> SYNOPSIS
> /usr/lib/acct/acctcon [ -l lineuse [ -o reboot ]
>
> /usr/lib/acct/acctcon1 [ -p ] [ -t ] [ -l lineuse ] [ - o
> reboot ]
>
> /usr/lib/acct/acctcon2
>
> AVAILABILITY
> SUNWaccu
>
> DESCRIPTION
> acctcon converts a sequence of login/logoff records to total
> accounting records (see the tacct format in acct(4)). The
> login/logoff records are read from standard input. The file
> /var/adm/wtmp is usually the source of the login/logoff
> records, however, because it may contain corrupted records
> ----

> From: djohnson@nbserv2.dseg.ti.com (Danny Johnson 0172547)
>
> do man prtacct and start digging from there.
>

Thanks again

elena
-----------------------------------------------------------------------------
GIANOLIO Elena
                                     ,,,
                                    (o o)
---------------------------------ooO-(_)-Ooo---------------------------------
Phone : (+41 22 767) 47 51
Fax : (+41 22 767) 33 94
Beep : (internal use only) 13 + 5140
-----------------------------------------------------------------------------
                                      |
CERN | E-mail
ECP div | Elena.Gianolio@cern.ch
Blg. 14-6-12 | gianolio@ptsun00.cern.ch
1211 Geneva 23 | gianolio@cernvm.cern.ch
Switzerland /|\
-----------------------------=====oooooooooo=====----------------------------



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:09 CDT