Is there an "auto enable" feature for printers on IBM AIX?

I have an IBM AIX machine.  We have about 100 network printers hooked up to it.  Occasionally one will become disabled for various reasons.  Most of the printers are at remote offices and if the data line goes down for a while and comes back up, sometimes the printer will be disabled.  There is nothing wrong with it and you just have to enable it for it to start working again.

I am either needing to find out if there is a way to do a "auto enable" of a printer after a certain amount of time or I need a cron script that will look for all disabled printers and try to enable them.

Any ideas?

Thanks,
Mark
9thTeeAsked:
Who is Participating?
 
sjm_eeConnect With a Mentor Commented:
Try then following:

for PRINTER in $(lpstat | grep DONE | tr -s ' ' | cut -d' ' -f1)
do
        enable $PRINTER
done

Put it in a script and schedule with cron.
0
 
9thTeeAuthor Commented:
Ok, that works (DOWN instead of DONE).

Thanks,
Mark
0
All Courses

From novice to tech pro — start learning today.