Solved

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

Posted on 2007-03-21
2
244 Views
Last Modified: 2013-12-16
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
0
Comment
Question by:9thTee
2 Comments
 
LVL 14

Accepted Solution

by:
sjm_ee earned 500 total points
ID: 18765364
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
 

Author Comment

by:9thTee
ID: 18765935
Ok, that works (DOWN instead of DONE).

Thanks,
Mark
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question