home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / aix / 12569 < prev    next >
Encoding:
Text File  |  1992-12-15  |  3.4 KB  |  96 lines

  1. Newsgroups: comp.unix.aix
  2. 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
  3. From: yoder@austin.ibm.com (Stuart R. Yoder)
  4. Subject: Re: Printer Accounting...
  5. Originator: yoder@yoder.austin.ibm.com
  6. Sender: news@austin.ibm.com (News id)
  7. Message-ID: <BzB1Dp.2MvG@austin.ibm.com>
  8. Date: Tue, 15 Dec 1992 14:25:01 GMT
  9. Reply-To: yoder@austin.ibm.com
  10. References:  <1992Dec14.135920.20212@vedge.com>
  11. Organization: IBM Austin
  12. Lines: 82
  13.  
  14.  
  15. In article <1992Dec14.135920.20212@vedge.com>, kiron@vedge.com (Kiron D. Bondale) writes:
  16. > Hi all,  having a few problems with setting up the printer accounting.
  17. > 1. Essentially, I have specified my acctfile in /etc/qconfig, made sure
  18. > the file was "digested", made sure my acctfile existed and was writable,
  19. > made sure accounting was on, and STILL have had none of my printed
  20. > files showing up in the log.  All my users print via "lp"...none use
  21. > enq...is this the problem?
  22.  
  23. It has nothing to do with which command you use.  The lp command in fact
  24. calls the enq command.  Note that accounting only works for local
  25. queues -- for remote printing, accounting will only work on the print
  26. server NOT on the print client's remote queue.
  27.  
  28. A question about accounting came up a few days ago and this is what I
  29. had posted:
  30.  
  31. ...but the following worked fine for me:
  32.  
  33.    1.  touch /tmp/qacct
  34.    2.  edit /etc/qconfig and add the 'acctfile=' parameter
  35.  
  36.      lp0:
  37.            device = lp0
  38.            acctfile = /tmp/qacct
  39.      lp0:
  40.            file = /dev/lp0
  41.            header = never
  42.            trailer = never
  43.            access = both
  44.            backend = /usr/lib/lpd/piobe
  45.  
  46.    3. run 'enq -d' to make sure that /etc/qconfig is digested
  47.    4. print a file to queue lp0
  48.    5. as root run the command 'pac -Plp0'
  49.  
  50.       get the output:
  51.  
  52.      Login               pages/feet   runs               price
  53.    root                        1.00    1                  USD .
  54.  
  55.    total                       1.00    1                  USD .
  56.  
  57.  
  58. > 2. Another oddity I have noticed is that I consistently get headers printed
  59. > for remote jobs to my printer, but local ones don't have them.  I have
  60. > made sure that I have a header = never line in the qconfig file, but
  61. > short of physically moving the "burst" header page from /usr/lib/lpd/pio/
  62. > burst I have not been able to turn it off....
  63. > Any hints/ideas?  I am running AIX 3.2 on an RS6000, and my accounting
  64. > system is 3.2 with PTF U404902/U405566 committed.
  65. > All help is appreciated...
  66. > Kiron
  67.  
  68. One thing to remember is that by default the lpr command will (or should)
  69. give you a header page.  You have to explicitly say you don't want one
  70. with the '-h' flag.
  71.  
  72. There have been some problems with AIX print servers adding header
  73. pages when they are not wanted.  One sure way to get rid of them, short
  74. of removing the "burst" file from /usr/lib/lpd/pio/burst is to change
  75. the virtual printer for a given queue and null out the command string
  76. that prints the header page:
  77.  
  78.   1. As root run lsvirprt
  79.   2. Select your queue from the menu
  80.   3. A prompt will appear.  Enter 'sh='  <enter>
  81.   4. Press <enter> to quit and save your changes
  82.  
  83. This 'nulls out' the bsh command string to print header pages and
  84. you should never get them again on that queue.
  85. -- 
  86. -Stuart
  87. -----------------------------------------------------------
  88. My opinions are mine and not those of my employer.
  89. -----------------------------------------------------------
  90.