Solved

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

Posted on 2007-03-21
2
247 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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.:
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.

839 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