home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / aix / 11722 < prev    next >
Encoding:
Text File  |  1992-11-19  |  2.7 KB  |  61 lines

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