IBM Books

Administration Guide


Accounting files

All accounting data, report, and summary files reside in the /var/adm directory. The accounting data files belong to members of the adm group, and all active data files (such as wtmp and pacct) reside in the adm home directory, /var/adm.

Note

The System Administrator should monitor the capacity of the /var file system when exclusive use accounting is enabled because large /var/adm/pacct files may be created and accounting will save the excl_Spacct files in the /var/adm/acct/nite directory. This may require the administrator to periodically increase the /var file system size or remove unnecessary excl_Spacct files. The System Administrator may edit the /usr/lpp/ssp/bin/nrunacct script in the CLEANUP section to automatically remove excl_SPacct files.

Data files

Data files are:

/var/adm/acct/nite/dacct
Contains disk total accounting records, created by the dodisk command.

/var/adm/fee
Contains output from the chargefee command, in ASCII tacct records.

/var/adm/pacct
Active process accounting file.

/var/adm/wtmp
Active login accounting file.

/var/adm/Spaccti.yyyymmdd
Contains process accounting files for yyyymmdd during the execution of the nrunacct command.

Report and summary files

Report and summary files reside in the /var/adm/acct subdirectory. You must create the following subdirectories before the accounting system is enabled.

/var/adm/acct/nite
Contains files that nrunacct and crunacct command use in daily accounting.

/var/adm/acct/sum
Contains the cumulative summary files that nrunacct and crunacct update daily.

/var/adm/cacct
Contains files that the crunacct command uses in daily accounting.

nrunacct command files

The following report and summary files, produced by the nrunacct command, are of particular interest.

/var/adm/nsiteacct
Contains site-specific accounting procedures for node accounting.

/var/adm/acct/nite/lineuseyyyymmdd
Contains usage statistics for each terminal line on the system. This report is especially useful for detecting bad lines. If the ratio between the number of logouts and logins exceeds 3 to 1, it is possible that a line is failing.

/var/adm/acct/nite/daytacctyyyymmdd
Total accounting file for the previous day.

/var/adm/acct/sum/daycmsyyyymmdd
Contains the daily command summary.

/var/adm/acct/sum/loginlogyyyymmdd
Contains a record of the last time each user ID was used.

/var/adm/acct/nite/rebootsyyyymmdd
Contains beginning and ending dates from the wtmp file and a listing of system restarts.

crunacct command files

/var/adm/csiteacct
Contains site-specific accounting procedures for cluster accounting.

These files are copied to the acct_master node during crunacct execution.

/var/adm/cacct/node/nite/lineuseyyyymmdd
/var/adm/cacct/node/nite/daytacctyyyymmdd
/var/adm/cacct/node/nite/rebootsyyyymmdd
/var/adm/cacct/node/sum/daycmsyyyymmdd
/var/adm/cacct/node/sum/loginlogyyyymmdd

The node level files are merged to become:

/var/adm/cacct/sum/class/tacctyyyymmdd.
/var/adm/cacct/sum/class/daycmsyyyymmdd.

which in turn update cumulative summary files:

/var/adm/cacct/sum/class/tacct file..
/var/adm/cacct/sum/class/cms file..

Files in the /var/adm/acct/nite directory

active
Used by the nrunacct command to record progress and to print warning and error messages. The file active.yyyymmdd is a copy of the active file made by nrunacct after it detects an error.

jobcharge
Contains a floating point number used to determine the number of charge fee units to charge a user for exclusive use of the node and its value is in units of seconds per charge fee unit.

jobrecs
Contains start job and end job records used for accounting on jobs that make exclusive use of nodes.

ptacct.yyyymmdd
Contains summary version of pacct files.

ctmp
Contains connect session records during nrunacct

accterr
Contains standard error messages produced during the execution of the nrunacct command.

lastdate
Indicates the last day the nrunacct command executed, in yyyymmdd format.

lock
Used to control serial use of the nrunacct command.

statefileyyyymmdd
Used to record the current state during execution of the nrunacct command.

wtmperror
Contains wtmpfix error messages.

owtmp.
Contains the previous day's wtmp file.

Files in the /var/adm/cacct/ directory

active
Used by the crunacct command to record progress and to print warning and error messages. The file active.yyyymmdd is a copy of the active file made by crunacct after it detects an error.

lastdate
Indicates the last day the crunacct command executed, in yyyymmdd format.

lock
Used to control serial use of the crunacct command.

statefileyyyymmdd
Used to record the current state during execution of the crunacct command.

lastcycle
Indicates the date of the last successfully completed crunacct cycle.

fiscal_periods
Defines the start date of each fiscal period.

Files in the /var/adm/cacct/sum directory

class/cms
Daily command summary.

loginlog
File listing current login records.

rprtyyyymmdd
Saved output of the cprdaily routine executed in crunacct.

<class>/tacct
Process account summaries.

Files in the /var/adm/cacct/fiscal directory

/var/adm/cacct/fiscal/class/cmsmm
Total class summary file for the month, in binary format.

/var/adm/cacct/fiscal/class/tacctmm
Total accounting file for month, in binary format.

/var/adm/cacct/fiscal/fiscrptmm
Report similar to that of the prdaily command for month, in binary format.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]