[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

System Management Guide: Operating System and Devices


Restarting the runacct Command

Prerequisites

  1. You must have the accounting system installed.
  2. You must have root user or adm group authority.

Note: The most common reason why the runacct command can fail are because:

Procedure

If the runacct command is unsuccessful, do the following:

  1. Check the /var/adm/acct/nite/active mmdd file for error messages.
  2. If both the active file and lock files exist in acct/nite, check the accterr file, where error messages are redirected when the cron daemon calls the runacct command.
  3. Perform any actions needed to eliminate errors.
  4. Restart the runacct command.
  5. To restart the runacct command for a specific date, type the following:

    nohup runacct 0601 2>> \
    /var/adm/acct/nite/accterr &
    

    This restarts the runacct program for June 1 (0601). The runacct program reads the /var/adm/acct/nite/statefile file to find out with which state to begin. All standard error output is appended to the /var/adm/acct/nite/accterr file.

  6. To restart the runacct program at a specified state, for example, the MERGE state, type the following:

    nohup runacct 0601 MERGE 2>> \
    /var/adm/acct/nite/accterr &
    


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]