Article View: comp.sys.next.sysadmin
Article #1173Re: How do I activate printer accounting/logging
From: Paul S. Sears
Date: Fri, 06 Nov 1992 16:16
Date: Fri, 06 Nov 1992 16:16
40 lines
2185 bytes
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."
Technical Details
Message-ID:
<1992Nov6.161654.10945@menudo.uh.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!caen!zaphod.mps.ohio-state.edu!menudo.uh.edu!usenetReferences:
<9182@blue.cis.pitt.edu.UUCP>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.sysadmin Path: arc1-ca.pugleaf.net!sparky!uunet!caen!zaphod.mps.ohio-state.edu!menudo.uh.edu!usenet From: sears@tree.egr.uh.edu (Paul S. Sears) Subject: Re: How do I activate printer accounting/logging Message-ID: <1992Nov6.161654.10945@menudo.uh.edu> Sender: usenet@menudo.uh.edu (USENET News System) Nntp-Posting-Host: thanatos.egr.uh.edu Reply-To: sears@tree.egr.uh.edu Organization: University of Houston References: <9182@blue.cis.pitt.edu.UUCP> Date: Fri, 6 Nov 1992 16:16:54 GMT Lines: 40