vxdiskusg(1M)
NAME
vxdiskusg (vxfs) − generate disk accounting data of VxFS file systems by user ID
SYNOPSIS
/usr/sbin/acct/vxdiskusg [options] [file...]
DESCRIPTION
vxdiskusg generates intermediate disk accounting information from data in file, or the standard input if the -s flag is specified and file is omitted. vxdiskusg outputs lines on the standard output, one per user, in the following format:
uid login #blocks
where:
uid User’s numerical user ID,
login User’s login name, and
#blocks Total number of disk blocks allocated to this user.
Without the -s option, file ... is the special filename of device(s) containing file systems. vxdiskusg reads only the inodes of file systems for disk accounting.
Options
vxdiskusg recognizes the following options:
-s Input data is already in vxdiskusg output format. vxdiskusg combines all lines for a single user into a single line.
-v verbose. Print a list on standard error of all files that are charged to no one.
-i ignlist Ignore the data on those file systems whose file system name is in ignlist. ignlist is a list of file system names, separated by commas or separated by spaces and enclosed within quotes. vxdiskusg compares each name in this list with the file system name stored in the volume name (see volcopy_vxfs(1M)), if it exists.
-p file Use file as the name of the password file to generate login names. /etc/passwd is used by default.
-u file Write records to file of files that are charged to no one. Records consist of the special file name, the inode number, and the user ID.
The output of vxdiskusg is normally the input to acctdisk (see acct(1M)) which generates total accounting records that can be merged with other accounting records. vxdiskusg is normally run in dodisk (see acctsh(1M)).
EXAMPLES
The following generates daily disk accounting information for the file systems on these disks:
for i in /dev/vg00/lvol1 /dev/vg00/lvol6 /dev/vg00/lvol7; do
vxdiskusg $i > dtmp.‘basename $i‘ &
done
wait
vxdiskusg -s dtmp.* | sort +0n +1 | acctdisk > disktacct
FILES
/etc/passwd used for user- ID -to-login-name conversions
SEE ALSO
acct(1M), acctsh(1M), volcopy(1M), volcopy_vxfs(1M), acct(4), diskusg(1M).
STANDARDS CONFORMANCE
vxdiskusg: SVID2, SVID3
Hewlett-Packard Company — HP-UX Release 10.20: July 1996