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

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!zaphod.mps.ohio-state.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: <BzBL18.1x05@austin.ibm.com>
  8. Date: Tue, 15 Dec 1992 21:29:32 GMT
  9. Reply-To: yoder@austin.ibm.com
  10. References: <1992Dec14.135920.20212@vedge.com> <BzB1Dp.2MvG@austin.ibm.com> <1gl66dINNmn3@rave.larc.nasa.gov>
  11. Organization: IBM Austin
  12. Lines: 76
  13.  
  14.  
  15. In article <1gl66dINNmn3@rave.larc.nasa.gov>, jcburt@gatsibm.larc.nasa.gov () writes:
  16. > In article <BzB1Dp.2MvG@austin.ibm.com> yoder@austin.ibm.com writes:
  17. > >
  18. > >In article <1992Dec14.135920.20212@vedge.com>, kiron@vedge.com (Kiron D. Bondale) writes:
  19. > >> Hi all,  having a few problems with setting up the printer accounting.
  20. > >> 
  21. > >> 1. Essentially, I have specified my acctfile in /etc/qconfig, made sure
  22. > >> the file was "digested", made sure my acctfile existed and was writable,
  23. > >> made sure accounting was on, and STILL have had none of my printed
  24. > >> files showing up in the log.  All my users print via "lp"...none use
  25. > >> enq...is this the problem?
  26. > >> 
  27. > >
  28. > >It has nothing to do with which command you use.  The lp command in fact
  29. > >calls the enq command.  Note that accounting only works for local
  30. > >queues -- for remote printing, accounting will only work on the print
  31. > >server NOT on the print client's remote queue.
  32. > >
  33. > >A question about accounting came up a few days ago and this is what I
  34. > >had posted:
  35. > >
  36. > >...but the following worked fine for me:
  37. > >
  38. > >   1.  touch /tmp/qacct
  39. > >   2.  edit /etc/qconfig and add the 'acctfile=' parameter
  40. > >
  41. > >     lp0:
  42. > >           device = lp0
  43. > >           acctfile = /tmp/qacct
  44. > >     lp0:
  45. > >           file = /dev/lp0
  46. > >           header = never
  47. > >           trailer = never
  48. > >           access = both
  49. > >           backend = /usr/lib/lpd/piobe
  50. > >
  51. > >   3. run 'enq -d' to make sure that /etc/qconfig is digested
  52. > >   4. print a file to queue lp0
  53. > >   5. as root run the command 'pac -Plp0'
  54. > >
  55. > >      get the output:
  56. > >
  57. > >     Login               pages/feet   runs               price
  58. > >   root                        1.00    1                  USD .
  59. > >
  60. > >   total                       1.00    1                  USD .
  61. > >
  62. > Okay, I did everything you listed above, and I *do* get a similar response
  63. > to the 'pac ' command, but I *still* do not get anything reported
  64. > in my daily reports. I *still* get a column of zeros under the PRINT 
  65. > column in the daily reports, even thought the printers are used heavily.
  66. >
  67.  
  68. I looking at InfoExplorer under the 'Accounting Overview' it looks
  69. like you have to run a command called 'acctmerge' to get the printer
  70. accounting added to the daily reports.  Try looking at the man page
  71. for that command.  I've never used it before.
  72.  
  73. > Also, how do you configure 2 printers so that you get seperate accounting
  74. > on *both* printers...right now I'm only attempting to check one, but even that
  75. > doesn't work...suggestions ?
  76. > John
  77. > jcburt@gatsibm.larc.nasa.gov
  78.  
  79. You should be able set up a separate queue for each printer and then
  80. for each queue specify a different accounting file name.
  81. -- 
  82. -Stuart
  83. -----------------------------------------------------------
  84. My opinions are mine and not those of my employer.
  85. -----------------------------------------------------------
  86.