diskusg(1M) diskusg(1M)NAME diskusg - generates disk accounting data by user ID SYNOPSIS diskusg [-i ignlist] [-p pw-file] [-s] [-u outfile] [-v] [file]... ARGUMENTS -i ignlist Ignores the data on those file systems whose file system name is in ignlist. Replace ignlist with a list of file system names separated by commas or enclosed within quotes. The diskusg command compares each name in this list with the file system name stored in the volume ID (see labelit(1M)). file Specifies the file from which the information is taken. -p pw-file Uses file as the name of the password file to generate login names. The /etc/passwd file is used by default. -s Indicates that the input is already in diskusg output format. The diskusg command combines all lines for a single user into a single line. Input is supplied in a file or standard input if no file is specified. -u outfile Writes records to outfile for files that are charged to no one. Records consist of the special file name, the inode number, and the user ID. -v Specifies verbose mode. Prints a list on standard error of all files that are charged to no one. DESCRIPTION diskusg generates intermediate disk accounting information from data in file. diskusg outputs lines on the standard output (one line per user) in the following format: uid login #blocks where: uid is the user's numeric user ID. login is the user's login name; and #blocks is the total number of disk blocks allocated to this user. January 1992 1
diskusg(1M) diskusg(1M)The diskusg command normally reads only the inodes of file systems for disk accounting. In this case, file is the special filename of these devices. The output of diskusg is normally the input to acctdisk (see acct(1M)), which generates total accounting records that can be merged with other accounting records. The diskusg command is normally run in dodisk (see acctsh(1M)). EXAMPLES The following command generates daily disk accounting information: for i in /dev/dsk/c0d0s0 /dev/dsk/c1d0s0; do diskusg $i > dtmp.`basename $i` & done wait diskusg -s dtmp.* | sort +0n +1 | acctdisk > disktacct FILES /usr/lib/acct/diskusg Executable file /dev/dsk/c0d0s0 Device file /dev/dsk/c1d0s0 Device file /etc/passwd File containing user IDs SEE ALSO acct(1M), acctsh(1M) acct(4) in A/UX Programmer's Reference 2 January 1992