home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!grin!potter
- From: potter@watson.ibm.com (David Potter)
- Subject: Re: want to trace CPU usage by group
- Sender: news@watson.ibm.com (NNTP News Poster)
- Message-ID: <1992Nov19.150733.59906@watson.ibm.com>
- Date: Thu, 19 Nov 1992 15:07:33 GMT
- Disclaimer: This posting represents the poster's views, not necessarily those of IBM
- References: <1992Nov12.124101.36444@uservx.plk.af.mil>
- Nntp-Posting-Host: grin.watson.ibm.com
- Organization: IBM T.J. Watson Research Center
- Lines: 47
-
- Randy, the Aix process termination accounting record *does* include the
- gid. It is right after the uid. See /usr/include/sys/acct.h. The
- fields are ac_uid and ac_gid.
-
- In article <1992Nov12.124101.36444@uservx.plk.af.mil> rokosz@uservx.plk.af.mil writes:
- >
- > We have just installed an RS/6000 and want to charge its users for CPU
- >usage. AIX accounting can (apparently) make monthly usage charts per username.
- >However, we have users that may want to charge their work to multiple accounts,
- >defined by four-digit charge codes. We thought that we could store this
- >charge code in the Group ID field for each user as their primary group, as
- >well as define additional charge codes for each user in /etc/group. We assumed
- >that users could change their group on the fly, thus changing their charge
- >code. The problem is that AIX accounting (apparently) doesn't trace usage by
- >group. So I have three options:
- >
- > 1. (preferably) find some way to get AIX accounting to trace usage by
- > group - does anyone know how to get this to come about?
- >
- > 2. keep track of charge codes for each user in some (as yet unknown
- > to me) field that AIX accounting CAN trace usage by - does anyone
- > know of an additional field to use?
- >
- > 3. if a user has multiple charge codes, give that user multiple
- > accounts to log into, each with a group ID related to each code
- >
- > Would like to create a monthly report similar to the following:
- >
- > Username Charge Code CPU usage
- > -------- ----------- ---------
- > rokosz 3777 xxx secs
- > rokosz 2223 xxxx secs
- > jonesl 4207 xx secs
- > jonesl 3777 xxx secs
- > smithb 2223 xxx secs
- >
- > Randy Rokosz
- > rokosz@plk.af.mil
- > Phillips Lab - Kirtland
- > (505) 846-6108
-
-
- --
- * tuktusiuriagatigitqingnapin'ngitkiptin'nga, David Potter
-
- David Potter, potter@watson.ibm.com, 8-862-2824, Fax 8-862-2141
- POBox 218, Yorktown Heights, NY 10598, (914)945-2824, Fax (914)945-2141
-