Installation guide

12.4.5
The acctcon1 Command ......................................... 12–18
12.4.6
The acctcon2 Command ......................................... 12–19
12.4.7
The prctmp Shell Script ........................................ 12–19
12.4.8
The lastlogin Shell Script ...................................... 12–19
12.4.9
The last Command ............................................... 12–20
12.5
Process Accounting ...................................................
12–20
12.5.1
The accton Command ........................................... 12–23
12.5.2
The turnacct Shell Script ....................................... 12–23
12.5.3
The ckpacct Shell Script ........................................ 12–23
12.5.4
The acctcom Command ......................................... 12–24
12.5.5
The sa Command ................................................
12–25
12.5.6
The acctcms Command ......................................... 12–27
12.5.7
The acctprc1 Command ......................................... 12–28
12.5.8
The acctprc2 Command ......................................... 12–29
12.5.9
The lastcomm Command ....................................... 12–29
12.6
Disk Usage Accounting ..............................................
12–30
12.6.1
The dodisk Shell Script ......................................... 12–30
12.6.2
The diskusg Command .......................................... 12–31
12.6.3
The acctdusg Command ........................................ 12–32
12.6.4
The acctdisk Command ......................................... 12–33
12.7
System Administration Service Accounting ...................... 12–33
12.8
Printer Accounting ................................................... 12–34
12.9
Creating Daily, Summary, and Monthly Report Files .......... 12–34
12.9.1
The runacct Shell Script ........................................ 12–35
12.9.1.1
Correcting runacct Shell Script Errors .................. 12–36
12.9.1.2
Examples of Errors and Corrective Actions ............ 12–38
12.9.2
The acctmerg Command ........................................ 12–39
12.9.3
The prtacct Shell Script ........................................ 12–40
12.9.4
The prdaily Shell Script ........................................ 12–40
12.9.5
The monacct Shell Script ....................................... 12–41
13 Administering Events and Errors
13.1
Understanding the Event-Logging Facilities .................... 13–1
13.1.1
System Event Logging .......................................... 13–2
13.1.2
Binary Event Logging ........................................... 13–2
13.2
Configuring Event Logging ......................................... 13–3
13.2.1
Editing the Configuration Files ............................... 13–3
13.2.1.1
The syslog.conf File ......................................... 13–3
13.2.1.2
The binlog.conf File ......................................... 13–7
13.2.2
Creating the Special Files ...................................... 13–9
13.2.3
Starting and Stopping Event-Logging Daemons ........... 13–9
Contents xiii