🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.sysadmin
2 messages
2 total messages Started by robert cyphers Thu, 05 Nov 1992 22:56
How do I activate printer accounting/logging
#1160
Author: robert cyphers
Date: Thu, 05 Nov 1992 22:56
2 lines
447 bytes
How do I activate printer accounting or usage logging by user?
I am running on NeXT 2.0.
Re: How do I activate printer accounting/logging
#1173
Author: Paul S. Sears
Date: Fri, 06 Nov 1992 16:16
40 lines
2185 bytes
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."
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads