home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!usc!rpi!uwm.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: <BzB1Dp.2MvG@austin.ibm.com>
- Date: Tue, 15 Dec 1992 14:25:01 GMT
- Reply-To: yoder@austin.ibm.com
- References: <1992Dec14.135920.20212@vedge.com>
- Organization: IBM Austin
- Lines: 82
-
-
- 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 .
-
-
- > 2. Another oddity I have noticed is that I consistently get headers printed
- > for remote jobs to my printer, but local ones don't have them. I have
- > made sure that I have a header = never line in the qconfig file, but
- > short of physically moving the "burst" header page from /usr/lib/lpd/pio/
- > burst I have not been able to turn it off....
- >
- > Any hints/ideas? I am running AIX 3.2 on an RS6000, and my accounting
- > system is 3.2 with PTF U404902/U405566 committed.
- >
- > All help is appreciated...
- >
- > Kiron
- >
-
- One thing to remember is that by default the lpr command will (or should)
- give you a header page. You have to explicitly say you don't want one
- with the '-h' flag.
-
- There have been some problems with AIX print servers adding header
- pages when they are not wanted. One sure way to get rid of them, short
- of removing the "burst" file from /usr/lib/lpd/pio/burst is to change
- the virtual printer for a given queue and null out the command string
- that prints the header page:
-
- 1. As root run lsvirprt
- 2. Select your queue from the menu
- 3. A prompt will appear. Enter 'sh=' <enter>
- 4. Press <enter> to quit and save your changes
-
- This 'nulls out' the bsh command string to print header pages and
- you should never get them again on that queue.
- --
- -Stuart
- -----------------------------------------------------------
- My opinions are mine and not those of my employer.
- -----------------------------------------------------------
-