AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Printer Accounting Does it exist?

    Posted Thu January 17, 2008 10:29 AM

    Originally posted by: SystemAdmin


    Greetings UNIX and Linux folk.

    I am running 4.3 and 5.3 AIX and I have about 100 printers. Id like to be able to parse a log for a certain printer to see when the last time it was used or how many jobs have gone through it.

    Is there anything in AIX to help me do this? If not is there a shell script I can write to look at a system file?

    Thanks,

    Zipp
    #AIX-Forum


  • 2.  Re: Printer Accounting Does it exist?

    Posted Thu January 17, 2008 10:34 AM

    Originally posted by: SystemAdmin


    AIX does not by default log print jobs. For ASCII queues you can turn on accounting. Most of the time I do this with custom scripts for other types of printers.
    #AIX-Forum


  • 3.  Re: Printer Accounting Does it exist?

    Posted Thu March 13, 2008 05:02 PM

    Originally posted by: SystemAdmin


    Where or how do I turn on accounting for the ASCII queues. Id just like to know how often a printer is being used.

    Thanks
    #AIX-Forum


  • 4.  Re: Printer Accounting Does it exist?

    Posted Fri May 01, 2009 10:24 AM

    Originally posted by: SystemAdmin


    John Tesch has created this information regarding this topic :

    Steps for printer accounting for ASCII files.

    1. Create a file in /var/adm for each queue, and change ownership to group printq.

    # touch /var/adm/asc
    # chown root:printq /var/adm/asc
    # chmod 664

    2. Set up the /etc/qconfig queue stanza accounting file.

    # smitty chpq
    enter the print queue name or select from F4 menu
    Choose: 3 Accounting File
    For ACCOUNTING FILE name enter full path name
    Example: /var/adm/asc

    3. List the queueu to verify the filename

    # lsque -q asc
    asc:
    acctfile = /var/adm/asc
    device = lp0

    4. Print out the results with the pac accounting command.

    # pac -Pasc
    Login pages/feet runs price
    jwtesch 14.00 2 USD .08
    sambat 28.00 9 USD .56

    total 42.00 11 USD .64

    Accounting for PostScript or Pass-through queues.

    AIX does not support printer accounting for these file types because of the difficulty in counting pages.
    #AIX-Forum