home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / aix / 12577 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  2.5 KB

  1. Path: sparky!uunet!news.larc.nasa.gov!gatsibm.larc.nasa.gov!jcburt
  2. From: jcburt@gatsibm.larc.nasa.gov ()
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: Printer Accounting...
  5. Date: 15 Dec 1992 17:55:25 GMT
  6. Organization: NASA Langley Research Center
  7. Lines: 60
  8. Message-ID: <1gl66dINNmn3@rave.larc.nasa.gov>
  9. References: <1992Dec14.135920.20212@vedge.com> <BzB1Dp.2MvG@austin.ibm.com>
  10. NNTP-Posting-Host: gatsibm.larc.nasa.gov
  11.  
  12. In article <BzB1Dp.2MvG@austin.ibm.com> yoder@austin.ibm.com writes:
  13. >
  14. >In article <1992Dec14.135920.20212@vedge.com>, kiron@vedge.com (Kiron D. Bondale) writes:
  15. >> Hi all,  having a few problems with setting up the printer accounting.
  16. >> 
  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. >
  24. >It has nothing to do with which command you use.  The lp command in fact
  25. >calls the enq command.  Note that accounting only works for local
  26. >queues -- for remote printing, accounting will only work on the print
  27. >server NOT on the print client's remote queue.
  28. >
  29. >A question about accounting came up a few days ago and this is what I
  30. >had posted:
  31. >
  32. >...but the following worked fine for me:
  33. >
  34. >   1.  touch /tmp/qacct
  35. >   2.  edit /etc/qconfig and add the 'acctfile=' parameter
  36. >
  37. >     lp0:
  38. >           device = lp0
  39. >           acctfile = /tmp/qacct
  40. >     lp0:
  41. >           file = /dev/lp0
  42. >           header = never
  43. >           trailer = never
  44. >           access = both
  45. >           backend = /usr/lib/lpd/piobe
  46. >
  47. >   3. run 'enq -d' to make sure that /etc/qconfig is digested
  48. >   4. print a file to queue lp0
  49. >   5. as root run the command 'pac -Plp0'
  50. >
  51. >      get the output:
  52. >
  53. >     Login               pages/feet   runs               price
  54. >   root                        1.00    1                  USD .
  55. >
  56. >   total                       1.00    1                  USD .
  57. >
  58.  
  59. Okay, I did everything you listed above, and I *do* get a similar response
  60. to the 'pac ' command, but I *still* do not get anything reported
  61. in my daily reports. I *still* get a column of zeros under the PRINT 
  62. column in the daily reports, even thought the printers are used heavily.
  63.  
  64. Also, how do you configure 2 printers so that you get seperate accounting
  65. on *both* printers...right now I'm only attempting to check one, but even that
  66. doesn't work...suggestions ?
  67.  
  68. John
  69. jcburt@gatsibm.larc.nasa.gov
  70.  
  71.  
  72.