Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2007-03-21
2
Medium Priority
?
252 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
sjm_ee earned 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

721 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