home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / sysadmin / 6543 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.8 KB

  1. Path: sparky!uunet!know!mips2!news.bbn.com!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!master.cs.rose-hulman.edu!master.cs.rose-hulman.edu!news
  2. From: nelson@nextwork.Rose-Hulman.Edu (Randy J. Nelson)
  3. Newsgroups: comp.sys.next.sysadmin
  4. Subject: Re: How do I activate printer accounting/logging
  5. Message-ID: <1e9gbiINNdv@master.cs.rose-hulman.edu>
  6. Date: 17 Nov 92 01:02:42 GMT
  7. References: <1992Nov6.161654.10945@menudo.uh.edu>
  8. Reply-To: nelson@nextwork.Rose-Hulman.Edu (Randy J. Nelson)
  9. Organization: Computer Science Department at Rose-Hulman
  10. Lines: 60
  11. NNTP-Posting-Host: randy-next.nextwork.rose-hulman.edu
  12.  
  13. In article <1992Nov6.161654.10945@menudo.uh.edu> sears@tree.egr.uh.edu  
  14. (Paul S. Sears) writes:
  15. > In article <9182@blue.cis.pitt.edu.UUCP>  writes:
  16. > =>How do I activate printer accounting or usage logging by user?
  17. > =>I am running on NeXT 2.0.
  18. > (This applies for both NS3.0 and NS2.x)
  19. > Add an entry in your printcap for the printer you want to log 
  20. >   af=/dir/where/you/want/to/log/printing/usage
  21. > For example, here is a printcap entry for one of our printers (third  
  22. line of  
  23. > entry contains the af field):
  24. > ME_LaserWriter: \
  25. >         :note=ME LaserWriter II NT:ty=Apple LaserWriter II NT: \
  26. >          
  27. :sd=/usr/spool/NeXT/ME_LaserWriter:sharedTo=/:sharedAs=N230_D_LW: \
  28. >          
  29. :lp=/dev/null:lf=/usr/adm/lpd-errs:af=/usr/adm/lp.acct:br=9600:rw: \
  30. >         :fc#0000374:fs#0000003:xc#0:xs#0040040:mx#0:sf:sb: \
  31. >         :if=/usr/local/cap/bin/N230_D_LW:of=/usr/lib/transcript/psof: \
  32. >         :gf=/usr/lib/transcript/psgf:nf=/usr/lib/transcript/psnf: \
  33. >         :tf=/usr/lib/transcript/pstf:rf=/usr/lib/transcript/psrf: \
  34. >         :vf=/usr/lib/transcript/psvf:cf=/usr/lib/transcript/pscf: \
  35. >         :df=/usr/lib/transcript/psdf:
  36. > The accounting info for this printer is sent to /usr/adm/lp.acct.
  37. > To determine usage on a per user basis, use
  38. > /usr/etc/pac -m -Pprinter_name
  39. > This will be at the default $0.02/page.  Check the man pages for  
  40. printcap and  
  41. > pac.
  42. > --
  43. > Paul S. Sears                *  sears@uh.edu (NeXT Mail OK)
  44. > The University of Houston    *  suggestions@tree.egr.uh.edu (NeXT
  45. > Engineering Computing Center *  comments, complaints, questions)
  46. > NeXT System Administration   *  DoD#1967 '83 NightHawk 650SC 
  47. >           >>> SSI Diving Certification #755020059 <<<
  48. > "Programming is like sex: One mistake and you support it a lifetime."
  49.  
  50.  
  51. Also, you must "touch" the file.  If the file doen't exist, accounting  
  52. will not be done.  i.e The following was done to make the above entry  
  53. work.
  54.  
  55. touch /usr/adm/lp.acct
  56.  
  57. --
  58.  -Randy Nelson
  59.   Workstation Support Manager
  60.   Rose-Hulman Institute of Technology
  61.   Email: Randy.Nelson@Rose-Hulman.Edu               
  62.   
  63.