home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / next / sysadmin / 6325 < prev    next >
Encoding:
Text File  |  1992-11-07  |  2.1 KB  |  54 lines

  1. Newsgroups: comp.sys.next.sysadmin
  2. Path: sparky!uunet!caen!zaphod.mps.ohio-state.edu!menudo.uh.edu!usenet
  3. From: sears@tree.egr.uh.edu (Paul S. Sears)
  4. Subject: Re: How do I activate printer accounting/logging
  5. Message-ID: <1992Nov6.161654.10945@menudo.uh.edu>
  6. Sender: usenet@menudo.uh.edu (USENET News System)
  7. Nntp-Posting-Host: thanatos.egr.uh.edu
  8. Reply-To: sears@tree.egr.uh.edu
  9. Organization: University of Houston
  10. References: <9182@blue.cis.pitt.edu.UUCP>
  11. Date: Fri, 6 Nov 1992 16:16:54 GMT
  12. Lines: 40
  13.  
  14. In article <9182@blue.cis.pitt.edu.UUCP>  writes:
  15. =>How do I activate printer accounting or usage logging by user?
  16. =>I am running on NeXT 2.0.
  17.  
  18. (This applies for both NS3.0 and NS2.x)
  19.  
  20. Add an entry in your printcap for the printer you want to log 
  21.  
  22.   af=/dir/where/you/want/to/log/printing/usage
  23.  
  24. For example, here is a printcap entry for one of our printers (third line of  
  25. entry contains the af field):
  26.  
  27. ME_LaserWriter: \
  28.         :note=ME LaserWriter II NT:ty=Apple LaserWriter II NT: \
  29.         :sd=/usr/spool/NeXT/ME_LaserWriter:sharedTo=/:sharedAs=N230_D_LW: \
  30.         :lp=/dev/null:lf=/usr/adm/lpd-errs:af=/usr/adm/lp.acct:br=9600:rw: \
  31.         :fc#0000374:fs#0000003:xc#0:xs#0040040:mx#0:sf:sb: \
  32.         :if=/usr/local/cap/bin/N230_D_LW:of=/usr/lib/transcript/psof: \
  33.         :gf=/usr/lib/transcript/psgf:nf=/usr/lib/transcript/psnf: \
  34.         :tf=/usr/lib/transcript/pstf:rf=/usr/lib/transcript/psrf: \
  35.         :vf=/usr/lib/transcript/psvf:cf=/usr/lib/transcript/pscf: \
  36.         :df=/usr/lib/transcript/psdf:
  37.  
  38. The accounting info for this printer is sent to /usr/adm/lp.acct.
  39.  
  40. To determine usage on a per user basis, use
  41.  
  42. /usr/etc/pac -m -Pprinter_name
  43.  
  44. This will be at the default $0.02/page.  Check the man pages for printcap and  
  45. pac.
  46.  
  47. --
  48. Paul S. Sears                *  sears@uh.edu (NeXT Mail OK)
  49. The University of Houston    *  suggestions@tree.egr.uh.edu (NeXT
  50. Engineering Computing Center *  comments, complaints, questions)
  51. NeXT System Administration   *  DoD#1967 '83 NightHawk 650SC 
  52.           >>> SSI Diving Certification #755020059 <<<
  53. "Programming is like sex: One mistake and you support it a lifetime."
  54.