home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / question / 14751 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.7 KB

  1. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!rphroy!ilium!gdls!mccabe
  2. From: mccabe@gdls.CSCTMD.COM (Harold McCabe)
  3. Newsgroups: comp.unix.questions
  4. Subject: UNIX and Accounting
  5. Keywords: server processes, background jobs, charge back
  6. Message-ID: <BzDJ8B.F6n@gdls.CSCTMD.COM>
  7. Date: 16 Dec 92 22:45:46 GMT
  8. Organization: Computer Sciences Corp. @ General Dynamics
  9. Lines: 26
  10.  
  11. I manage a large number of UNIX workstations for a defense contractor.
  12. The costs of the workstations go against the contracts that the
  13. contractor has.  A single workstation can be used on several contracts.
  14.  
  15. To handle this, I have a "charge back" system which runs at login time
  16. and prompts the user for the contract identifier.  The contract number
  17. is appended to the most recent record in the wtmp file and written to a data
  18. file.  Later, the wtmp file (via last) is correlated with the record in the
  19. data file.  The result is a record that contains the user, the login time,
  20. the elapsed time, and the contract id.  These resultant records are summarized
  21. and used to determine how the workstations costs are allocated to contracts.
  22.  
  23. The problem I have is that UNIX wtmp accounting tracks only login sessions.
  24. Background jobs, and processes that are servers are not tracked.  rsh's are
  25. not tracked either.  This kind of work is an increasingly large % of the
  26. load on the workstations, yet I am not tracking it.  UNIX has some
  27. additional abilities to track processes, like MULTICS cuc (command usage
  28. count) but I would not be able to identify the contract id for these
  29. processes.
  30.  
  31. Does anyone have any ideas about how to track server processes, rsh's,
  32. background jobs per contract?  Know of any off-the-shelf packages, etc?
  33.  
  34. Thanks,
  35.  
  36. Harold McCabe
  37.