AIX

AIX

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


#Power
 View Only
  • 1.  Finding unused printers

    Posted Tue November 18, 2008 10:38 AM

    Originally posted by: SystemAdmin


    I have an aix system with 135 printers, I found them by running ls -l /var/spool/lpd/stat/*${queue}*${device}*

    Is there any way to see when the last time a printer is printed to? We are preparing for an upgrade and need to clean out old devices.
    #AIX-Forum


  • 2.  Re: Finding unused printers

    Posted Tue November 18, 2008 01:55 PM

    Originally posted by: SystemAdmin


    Assuming you don't have accounting turned on for any of your print queues, try using the ls command on the device files in the /dev directory.
    You can determine what those files are by looking at /etc/qconfig.
    #AIX-Forum


  • 3.  Re: Finding unused printers

    Posted Tue November 18, 2008 05:13 PM

    Originally posted by: SystemAdmin


    Thank you. Yes, unfortunately accounting is not turned on. When I look at my qconfig, I see things like:
    hp@is1hp5:
    file = /var/spool/lpd/pio/@local/dev/hp@is1hp5.bryanlgh.org#hpJetDirect#9100
    header = never
    trailer = never
    access = both
    backend = /usr/lib/lpd/pio/etc/piojetd is1hp5.abaaba.org 9100
    If I "ls" the /var/spool/lpd/pio/@local/dev/ I see very old file dates. I guess these are dates of when the printers were installed.
    #AIX-Forum


  • 4.  Re: Finding unused printers

    Posted Tue November 18, 2008 05:50 PM

    Originally posted by: SystemAdmin


    Try looking at the files in /var/spool/lpd/stat as these should give you the answer.
    #AIX-Forum


  • 5.  Re: Finding unused printers

    Posted Tue November 18, 2008 05:53 PM

    Originally posted by: SystemAdmin


    The time on the file is the last use.
    #AIX-Forum


  • 6.  Re: Finding unused printers

    Posted Wed November 19, 2008 09:23 AM

    Originally posted by: SystemAdmin


    Thank you! This does show exactly what I need.
    #AIX-Forum