Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > A


HP-UX 11i Version 3: February 2007

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index


acctsh: chargefee, ckpacct, dodisk, lastlogin, monacct, nulladm, prctmp, prdaily, prtacct, shutacct, startup, turnacct — shell procedures for accounting


/usr/sbin/acct/chargefee login-name number

/usr/sbin/acct/ckpacct [blocks]

/usr/sbin/acct/dodisk [-o] [files ...]


/usr/sbin/acct/monacct number

/usr/sbin/acct/nulladm file


/usr/sbin/acct/prdaily [-l] [-c] [mmdd]

/usr/sbin/acct/prtacct file [heading]

/usr/sbin/acct/shutacct [reason]


/usr/sbin/acct/turnacct on | off | switch



Can be invoked to charge a number of units to login-name. A record is written to /var/adm/fee, to be merged with other accounting records during the night.


Should be initiated via cron. It periodically checks the size of /var/adm/pacct. If the size exceeds blocks, 1000 by default, turnacct is invoked with argument switch. If the number of free disk blocks in the /var file system falls below 500, ckpacct automatically turns off the collection of process accounting records via the off argument to turnacct. When at least this number of blocks is restored, the accounting will be activated again. This feature is sensitive to the frequency at which ckpacct is executed, usually by cron.


Should be invoked by cron to perform the disk accounting functions. By default, it will do disk accounting on the special files in /etc/fstab. If the -o flag is used, it does a slower version of disk accounting by login directory. files specifies the one or more filesystem names where disk accounting is to be done. If files is used, disk accounting will be done on these filesystems only. If the -o flag is used, files should be mount points of mounted filesystem. If omitted, they should be the special file names of mountable filesystems.


Invoked by runacct to update /var/adm/acct/sum/loginlog which shows the last date on which each user logged in (see runacct(1M)).


Should be invoked once each month or each accounting period. number indicates which month or period it is. If number is not given, it defaults to the current month (01 through 12). This default is useful if monacct is to executed via cron on the first day of each month. monacct creates summary files in /var/adm/acct/fiscal and restarts summary files in /var/adm/acct/sum.


Creates file with mode 664 and ensures that owner and group are adm. It is called by various accounting shell procedures.


Can be used to print the session record file normally /var/adm/acct/nite/ctmp created by acctcon1 (see acctcon(1M)).


Invoked by runacct (see runacct(1M)) to format a report of the previous day's accounting data. The report resides in /var/adm/acct/sum/rprtmmdd where mmdd is the month and day of the report. The current daily accounting reports may be printed by typing prdaily. Previous days' accounting reports can be printed by using the mmdd option and specifying the exact report date desired. The -l flag prints a report of exceptional usage by login id for the specifed date. Previous daily reports are cleaned up and therefore inaccessible after each invocation of monacct. The -c flag prints a report of exceptional resource usage by command, and can be used on current day's accounting data only.


Can be used to format and print any total accounting (tacct) file.


Should be invoked during a system shutdown to turn process accounting off and append a "reason" record to /var/adm/wtmp.


Should be called by system startup scripts to turn the accounting on whenever the system is brought up.


An interface to accton (see acct(1M)) to turn process accounting on or off. The switch argument turns accounting off, moves the current /var/adm/pacct to the next free name in /var/adm/pacctincr then turns accounting back on again. (incr is a number starting with 1 and incrementing by one for each additional pacct file.) turnacct is called by ckpacct, and thus can be run under cron and used to keep pacct to a reasonable size.



holds all accounting commands listed in section (1M) of this manual


accumulator for fees


working directory


current file for per-process accounting


used if pacct gets large, and during execution of daily accounting procedure


contains the limits for exceptional usage by command name


contains the limits for exceptional usage by login id


summary directory, should be saved


login/logoff summary


chargefee: SVID2, SVID3

ckpacct: SVID2, SVID3

dodisk: SVID2, SVID3

lastlogin: SVID2, SVID3

monacct: SVID2, SVID3

prctmp: SVID2, SVID3

prdaily: SVID2, SVID3

prtacct: SVID2, SVID3

shutacct: SVID2, SVID3

startup: SVID2, SVID3

turnacct: SVID2, SVID3

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.