*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> diskusg (1m)              


 diskusg(1M)                                                     diskusg(1M)

 NAME    [Toc]    [Back]
      diskusg - generate disk accounting data by user ID

 SYNOPSIS    [Toc]    [Back]
      /usr/sbin/acct/diskusg [options] [files]

 DESCRIPTION    [Toc]    [Back]
      diskusg generates intermediate disk accounting information from data
      in files, or the standard input if omitted.  diskusg outputs lines on
      the standard output, one per user, in the following format:

           uid login #blocks


           uid       User's numerical user ID,

           login     User's login name, and

           #blocks   Total number of disk blocks allocated to this user.

      diskusg normally reads only the inodes of file systems for disk
      accounting.  In this case, files are the special filenames of these

    Options    [Toc]    [Back]
      diskusg recognizes the following options:

           -s             Input data is already in diskusg output format.
                          diskusg 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 fnmlist     Ignore the data on those file systems whose file
                          system name is 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 if it exists.

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

           -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.

 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003

 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 normally run in dodisk (see

 EXAMPLES    [Toc]    [Back]
      The following generates daily disk accounting information:

           for i in /dev/rp00 /dev/rp01 /dev/rp10 /dev/rp11; do
               diskusg $i > dtmp.`basename $i` &
           diskusg -s dtmp.* | sort +0n +1 | acctdisk > disktacct

 FILES    [Toc]    [Back]
      /etc/passwd         used for user-ID-to-login-name conversions

 SEE ALSO    [Toc]    [Back]
      acct(1M), acctsh(1M), volcopy(1M), acct(4), vxdiskusg(1M).

      diskusg: SVID2, SVID3

 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
 Similar pages
Name OS Title
vxdiskusg HP-UX generate VxFS disk accounting data by user ID
diskusg Tru64 Generates disk accounting data by user ID
ttyslot Tru64 Find the slot for the current user in the user accounting database
acctdusg Tru64 Perform disk-usage accounting
acctdisk Tru64 Perform disk-usage accounting
acctresume HP-UX suspend and resume accounting when available disk space reaches threshold
acctsuspend HP-UX suspend and resume accounting when available disk space reaches threshold
utmps HP-UX user-accounting database
utmpd HP-UX user accounting database daemon
setutxent Tru64 Access user accounting database functions
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service