21.02.2013 Views

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

9. To submit the edited cron file, type:<br />

# /crontab /var/spool/cron/crontabs/root<br />

6.5.2 Setting up disk-usage accounting<br />

The dodisk command initiates disk-usage accounting by calling the diskusg<br />

command and the acctdisk command. If you specify the -o flag with the dodisk<br />

command, a more thorough but slower version of disk accounting by login<br />

directory is initiated using the acctdusg command. Normally, the cron daemon<br />

runs the dodisk command. Syntax for this command is:<br />

/usr/sbin/acct/dodisk [ -o ] [ File ... ]<br />

The -o flag calls the acctdusg command, instead of the diskusg command, to<br />

initiate disk accounting by login directory.<br />

By default, the dodisk command does disk accounting only on designated files<br />

with stanzas in the /etc/filesystems file and that contain the attribute<br />

account=true. If you specify file names with the File parameter, disk accounting<br />

is done on only those files.<br />

If you do not specify the -o flag, the file parameter should contain the special file<br />

names of mountable file systems. If you specify both the -o flag and the file<br />

parameter, the files should be mount points of mounted file systems.<br />

Note: You should not share accounting files among nodes in a distributed<br />

environment. Each node should have its own copy of the various accounting<br />

files.<br />

This command should grant execute (x) access to members of the adm group<br />

only.<br />

To start automatic disk-usage accounting, add the following to the<br />

/var/spool/cron/crontabs/root file:<br />

0 2 * * 4 /usr/sbin/acct/dodisk<br />

This example shows the instructions that the cron daemon will read and act<br />

upon. The dodisk command will run at 2 a.m. (0 2) each Thursday (4). This<br />

command is only one of the accounting instructions normally given to the cron<br />

daemon.<br />

Chapter 6. Error reports 129

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!