🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.sysadmin
Article #1831

Re: How do I activate printer accounting/logging

#1831
From: Randy J. Nelson
Date: Tue, 17 Nov 1992 01:02
60 lines
2900 bytes
In article <1992Nov6.161654.10945@menudo.uh.edu> sears@tree.egr.uh.edu  
(Paul S. Sears) writes:
> In article <9182@blue.cis.pitt.edu.UUCP>  writes:
> =>How do I activate printer accounting or usage logging by user?
> =>I am running on NeXT 2.0.
> 
> (This applies for both NS3.0 and NS2.x)
> 
> Add an entry in your printcap for the printer you want to log 
> 
>   af=/dir/where/you/want/to/log/printing/usage
> 
> For example, here is a printcap entry for one of our printers (third  
line of  
> entry contains the af field):
> 
> ME_LaserWriter: \
>         :note=ME LaserWriter II NT:ty=Apple LaserWriter II NT: \
>          
:sd=/usr/spool/NeXT/ME_LaserWriter:sharedTo=/:sharedAs=N230_D_LW: \
>          
:lp=/dev/null:lf=/usr/adm/lpd-errs:af=/usr/adm/lp.acct:br=9600:rw: \
>         :fc#0000374:fs#0000003:xc#0:xs#0040040:mx#0:sf:sb: \
>         :if=/usr/local/cap/bin/N230_D_LW:of=/usr/lib/transcript/psof: \
>         :gf=/usr/lib/transcript/psgf:nf=/usr/lib/transcript/psnf: \
>         :tf=/usr/lib/transcript/pstf:rf=/usr/lib/transcript/psrf: \
>         :vf=/usr/lib/transcript/psvf:cf=/usr/lib/transcript/pscf: \
>         :df=/usr/lib/transcript/psdf:
> 
> The accounting info for this printer is sent to /usr/adm/lp.acct.
> 
> To determine usage on a per user basis, use
> 
> /usr/etc/pac -m -Pprinter_name
> 
> This will be at the default $0.02/page.  Check the man pages for  
printcap and  
> pac.
> 
> --
> Paul S. Sears                *  sears@uh.edu (NeXT Mail OK)
> The University of Houston    *  suggestions@tree.egr.uh.edu (NeXT
> Engineering Computing Center *  comments, complaints, questions)
> NeXT System Administration   *  DoD#1967 '83 NightHawk 650SC 
>           >>> SSI Diving Certification #755020059 <<<
> "Programming is like sex: One mistake and you support it a lifetime."


Also, you must "touch" the file.  If the file doen't exist, accounting  
will not be done.  i.e The following was done to make the above entry  
work.

touch /usr/adm/lp.acct

--
 -Randy Nelson
  Workstation Support Manager
  Rose-Hulman Institute of Technology
  Email: Randy.Nelson@Rose-Hulman.Edu		       
  
Technical Details
Message-ID: <1e9gbiINNdv@master.cs.rose-hulman.edu>
Path: arc1-ca.pugleaf.net!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
References: <1992Nov6.161654.10945@menudo.uh.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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
From: nelson@nextwork.Rose-Hulman.Edu (Randy J. Nelson)
Newsgroups: comp.sys.next.sysadmin
Subject: Re: How do I activate printer accounting/logging
Message-ID: <1e9gbiINNdv@master.cs.rose-hulman.edu>
Date: 17 Nov 92 01:02:42 GMT
References: <1992Nov6.161654.10945@menudo.uh.edu>
Reply-To: nelson@nextwork.Rose-Hulman.Edu (Randy J. Nelson)
Organization: Computer Science Department at Rose-Hulman
Lines: 60
NNTP-Posting-Host: randy-next.nextwork.rose-hulman.edu