LNEXT
ONELCLEAN
UTERMINAL
TERMINAL
NEXT
$V1$
HILINE
PAUSE
q to quit, <CR> to continue
LIBACCT
README acctdusg chargefee lastlogin ptecms.awk turnacct
acctcms acctmerg ckpacct monacct ptelus.awk wtmpfix
acctcom accton diskusg nulladm remove
acctcon1 acctprc1 dodisk prctmp runacct
acctcon2 acctprc2 fwtmp prdaily shutacct
acctdisk acctwtmp holidays prtacct startup
ACCTDIR
/usr
|
|
lib
|
acct
|
------------------------------------
| | | |
| | | |
prdaily startup shutacct ...
GO
The actions of the accounting system may be viewed as follows:
At process termination, the system kernel writes one record
per process into the /usr/adm/pacct file in the form
of acct.h!
1. The login and init programs record connect sessions by
writing records into /etc/wtmp file. Date changes, reboots,
and shutdowns are also recorded in this file.
2. The disk utilization programs acctdusg and diskusg
break down disk usage by login.
3. Fees for file restores, etc., can be charged to specific
logins with the chargefee shell procedure.
4. Each day the runacct shell procedure is executed
via cron to reduce accounting data and produce summary
files and reports.
5. The monacct procedure can be executed on a monthly
basis or fiscal period basis. It saves and restarts summary
files, generates a report, and cleans up the sum directory.
The /usr/lib/acct directory holds all of the utilities and
scripts necessary to run the accounting system.
Let us use the ls -C command
to view the list of files in the
/usr/lib/acct directory.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type ls -C /usr/lib/acct
Please type ls -C /usr/lib/acct
You will be helped this time!
$PROMPT$
FORGET1
ls -C /usr/lib/acct
If your accounting system software
is loaded, you will observe the
result as shown above.
$PROMPT$
The command to start the accounting
system is /usr/lib/acct/startup.
system is accton.
Normally this line is included in the
/etc/rc file so that the accounting
system is turned on when the system
goes into "multi-user" mode. Please
turn it on at the prompt.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type /usr/lib/acct/startup
Please type /usr/lib/acct/startup
Please type accton
Please type accton
You will be helped this time!
$PROMPT$
FORGET2
/usr/lib/acct/startup
accton
$PROMPT$