Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ diskusg(1M) — A/UX 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

acct(1M)

acctsh(1M)

acct(4)




diskusg(1M) diskusg(1M)
NAME diskusg - generate disk accounting data by user ID SYNOPSIS diskusg [-i ignlist] [-p pw-file] [-s] [-u outfile] [-v] [file...] 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 the user's numeric user ID. login the user's login name; and #blocks the total number of disk blocks allocated to this user. diskusg normally reads only the inodes of file systems for disk accounting. In this case, file is the special filename of these devices. diskusg recognizes the following options: -i ignlist Ignore the data on those file systems whose file system name is in ignlist. ignlist lists file system names separated by commas or enclosed within quotes. diskusg compares each name in this list with the file system name stored in the volume ID (see labelit(1M)). -p pw-file Use file as the name of the password file to generate login names. /etc/passwd is used by default. -s The input is already in diskusg output format. diskusg 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 Write records to outfile for files that are charged to no one. Records consist of the spe- cial file name, the inode number, and the user ID. -v Verbose. Print a list on standard error of all files that are charged to no one. April, 1990 1



diskusg(1M) diskusg(1M)
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. diskusg is normal- ly run in dodisk (see acctsh(1M)). EXAMPLES The following 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 /dev/dsk/c0d0s0 /dev/dsk/c1d0s0 /etc/passwd converts user ID to login name SEE ALSO acct(1M), acctsh(1M), acct(4). 2 April, 1990

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026