Installation guide
identification number. The acctdusg command does not display the
disk-block count for empty directories.
12.6.4 The acctdisk Command
The acctdisk command creates a binary total accounting file. If it is
invoked from the dodisk script, the acctdisk command reads the
/var/adm/dtmp file that is produced by either the diskusg or acctdusg
command. It then writes converted binary records to a temporary file,
which is then moved to the /var/adm/acct/nite/dacct file.
The disk usage accounting records produced by the acctdisk command
are usually merged with other accounting records to produce a total
accounting report.
12.7 System Administration Service Accounting
You can charge users for system administration services. For example, you
could charge for the following services:
• Backing up files to disk
• Recovering files from disk
• Backing up files to tape
• Recovering files from tape
• Providing software technical assistance by phone
• Providing software technical assistance in person
The chargefee shell script allows you to charge users according to the
work performed. You should determine how much you want to charge for
each service. Services can have different charge rates according to the time
it takes to perform the task.
Charge units are collected in the /var/adm/fee file. You can use the
number of units charged to a user name to determine the fees for the
system administration tasks. The chargefee shell script creates the
/var/adm/fee file, if necessary, and adds a record that includes the user
identification number, user name, and charge units.
The chargefee shell script has the following syntax:
/usr/sbin/acct/chargefee user_name units
You can subtract units by specifying a dash (−) with the
units
variable.
The following example charges 7 units to user josh:
Administering the System Accounting Services 12–33