tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* accounting problem
@ 1998-05-08  7:50 ing.Bubulac Angela Tatiana
  0 siblings, 0 replies; only message in thread
From: ing.Bubulac Angela Tatiana @ 1998-05-08  7:50 UTC (permalink / raw)
  To: tru64-unix-managers

Hi,
I followed the steps described in the System Accounting chapter
regard the setup accounting (D.U.3.2C). I put the next lines in the
/usr/spool/cron/crontabs/adm file: 
45 13 * * 1-6 /usr/sbin/acct/runacct > /usr/adm/acct/nite/fd2log&
5 * * * * /usr/sbin/acct/ckpacct&
45 13 1 * * /usr/sbin/acct/monacct&
45 13 * * * /usr/sbin/ac -p /var/adm/acct/nite/timelog&
45 13 * * * /usr/bin/last >> /usr3/lastall
I wrote the last line because the wtmp file is removed every day and I do
not know where can I find the logins for the previous days in the from
that last command displays them.
In the cron.allow I have just root and adm groups.
I looked in the /var/adm/acct/nite/statefile and it contains the COMMPLETE
word. Also there is no lock file and the active file look like this:
ri May  8 06:30:02 EET DST 1998
-rw-rw-r--   1 adm      adm        60996 May  7 22:23 /var/adm/wtmp
-rw-rw-r--   1 adm      adm            0 May  7 06:31 fee
-rw-rw-r--   1 adm      adm       415640 May  8 06:30 pacct
-rw-rw-r--   1 adm      adm       281200 May  7 08:05 pacct1
....
files setups complete
wtmp processing complete
connect acctg complete
process acctg complete for /var/adm/Spacct1.0508
process acctg complete for /var/adm/Spacct10.0508
...
all process acctg complete for 0508
tacct merge to create daytacct complete
no fees
no disk records
no queueing system records
updated sum/tacct
command summaries complete
system accounting completed at Fri
(EOF):

The lastdate file contain the date of the present day for example 0508.

The big problem for me is that I think that none of the lines in the adm
file described above are not executed because the fd2log, timelog and
lastall files have 0 bytes. Another problems is when I change the time in
the adm file form 6.30am to 13.45pm, the wtmp file is removed(runacct) at
6.30am.
Why?
Please tell me where I wrong or what I do not understand (I am new to
system administration).
Thank you.
                               \\\___///
                              \\  - -  //
                               (  @ @  )
-----------------------------oOOo-(_)-oOOo--------------------------------
*Bubulac Angela Tatiana - National Institute for R&D of Materials Physics*
*			  Bucuresti - Magurele P.O.B. MG-7		 *
*			  Romania					 *
*e-mail: tatia@alpha1.infim.ro 	    |   phone :401-7805385 int.1380      *
*        root@alpha1.infim.ro	    |	       401-7806925               *
*       			    | 	       401-7804573		 *
--------------------------------------Oooo--------------------------------
                              oooO   (   )
                             (   )    ) /
                              \ (    (_/
                               \_)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-05-08  7:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-08  7:50 accounting problem ing.Bubulac Angela Tatiana

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox