diskusg(1M)


diskusg, bfsdiskusg, sfsdiskusg, ufsdiskusg, vxdiskusg -- generate disk accounting data by user ID

Synopsis

/usr/lib/acct/diskusg [options] [files]

/usr/lib/acct/bfsdiskusg [options] [files]

/usr/lib/acct/sfsdiskusg [options] [files]

/usr/lib/acct/ufsdiskusg [options] [files]

/usr/lib/acct/vxdiskusg [options] [files]

Description

diskusg, bfsdiskusg, sfsdiskusg, ufsdiskusg, and vxdiskusg generate intermediate disk accounting information from data in files, or the standard input if omitted. diskusg, bfsdiskusg, sfsdiskusg, ufsdiskusg and vxdiskusg output lines on the standard output (one per user) in the following format:

uid login #blocks

where


uid
the numerical user ID of the user

login
the login name of the user

#blocks
the total number of disk blocks allocated to this user (always reported in 512 byte blocks)
diskusg is normally used to read the inodes of s5 file systems for disk accounting. In this case, files are the special filenames of these devices. bfsdiskusg, sfsdiskusg, ufsdiskusg, and vxdiskusg are used to read the inodes of bfs, sfs, ufs, and vxfs file systems, respectively, for disk accounting.

Command options

diskusg, bfsdiskusg, sfsdiskusg, ufsdiskusg, and vxdiskusg recognize the following options:

-s
Combine all lines for a single user into a single line. (The input data is already in diskusg output format.)

-v
Print (on standard error) a list of all files charged to no one.

-p file
Use file as the name of the password file to generate login names. /etc/passwd is used by default.

-u file
Write (to file) records of files that are charged to no one. Records consist of the special filename, the inode number, and the user ID.
The diskusg, sfsdiskusg, ufsdiskusg, and vxdiskusg commands recognize the following option:

-i fnmlist
Ignore the data on those file systems for which a name is recorded in fnmlist. (fnmlist is a list of 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).)

Files


/etc/passwd
used for conversions of user IDs to login names

Usage

The output of the diskusg, bfsdiskusg, sfsdiskusg, ufsdiskusg, and vxdiskusg commands is normally the input to acctdisk (see acct(1M)), which generates total accounting records that can be merged with other accounting records. diskusg, bfsdiskusg, sfsdiskusg, ufsdiskusg, and vxdiskusg are normally run in dodisk. (See acctsh(1M).)

acctdusg (see acct(1M)) can be used on all file system types but is slower than diskusg.

Examples

Generate daily disk accounting information for the root file system on /dev/dsk/c1b0d0s0 (where root is an s5 file system):

diskusg /dev/dsk/c1b0d0s0 | acctdisk > disktacct

References

acct(1M), acct(4), acctsh(1M)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004