home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!geraldo.cc.utexas.edu!portal.austin.ibm.com!awdprime.austin.ibm.com!yoder
- From: yoder@austin.ibm.com (Stuart R. Yoder)
- Subject: Re: Printer Accounting...
- Originator: yoder@yoder.austin.ibm.com
- Sender: news@austin.ibm.com (News id)
- Message-ID: <BzBL18.1x05@austin.ibm.com>
- Date: Tue, 15 Dec 1992 21:29:32 GMT
- Reply-To: yoder@austin.ibm.com
- References: <1992Dec14.135920.20212@vedge.com> <BzB1Dp.2MvG@austin.ibm.com> <1gl66dINNmn3@rave.larc.nasa.gov>
- Organization: IBM Austin
- Lines: 76
-
-
- In article <1gl66dINNmn3@rave.larc.nasa.gov>, jcburt@gatsibm.larc.nasa.gov () writes:
- > In article <BzB1Dp.2MvG@austin.ibm.com> yoder@austin.ibm.com writes:
- > >
- > >In article <1992Dec14.135920.20212@vedge.com>, kiron@vedge.com (Kiron D. Bondale) writes:
- > >> Hi all, having a few problems with setting up the printer accounting.
- > >>
- > >> 1. Essentially, I have specified my acctfile in /etc/qconfig, made sure
- > >> the file was "digested", made sure my acctfile existed and was writable,
- > >> made sure accounting was on, and STILL have had none of my printed
- > >> files showing up in the log. All my users print via "lp"...none use
- > >> enq...is this the problem?
- > >>
- > >
- > >It has nothing to do with which command you use. The lp command in fact
- > >calls the enq command. Note that accounting only works for local
- > >queues -- for remote printing, accounting will only work on the print
- > >server NOT on the print client's remote queue.
- > >
- > >A question about accounting came up a few days ago and this is what I
- > >had posted:
- > >
- > >...but the following worked fine for me:
- > >
- > > 1. touch /tmp/qacct
- > > 2. edit /etc/qconfig and add the 'acctfile=' parameter
- > >
- > > lp0:
- > > device = lp0
- > > acctfile = /tmp/qacct
- > > lp0:
- > > file = /dev/lp0
- > > header = never
- > > trailer = never
- > > access = both
- > > backend = /usr/lib/lpd/piobe
- > >
- > > 3. run 'enq -d' to make sure that /etc/qconfig is digested
- > > 4. print a file to queue lp0
- > > 5. as root run the command 'pac -Plp0'
- > >
- > > get the output:
- > >
- > > Login pages/feet runs price
- > > root 1.00 1 USD .
- > >
- > > total 1.00 1 USD .
- > >
- >
- > Okay, I did everything you listed above, and I *do* get a similar response
- > to the 'pac ' command, but I *still* do not get anything reported
- > in my daily reports. I *still* get a column of zeros under the PRINT
- > column in the daily reports, even thought the printers are used heavily.
- >
-
- I looking at InfoExplorer under the 'Accounting Overview' it looks
- like you have to run a command called 'acctmerge' to get the printer
- accounting added to the daily reports. Try looking at the man page
- for that command. I've never used it before.
-
- > Also, how do you configure 2 printers so that you get seperate accounting
- > on *both* printers...right now I'm only attempting to check one, but even that
- > doesn't work...suggestions ?
- >
- > John
- > jcburt@gatsibm.larc.nasa.gov
- >
- >
-
- You should be able set up a separate queue for each printer and then
- for each queue specify a different accounting file name.
- --
- -Stuart
- -----------------------------------------------------------
- My opinions are mine and not those of my employer.
- -----------------------------------------------------------
-