Solved

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

Posted on 2007-03-21
2
242 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
Comment Utility
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
Comment Utility
Ok, that works (DOWN instead of DONE).

Thanks,
Mark
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now