Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey all,
I have a new server (Poweredge 2950 Xeon 5148) with about 100 clients on it, who are printing constantly to socket and lpd printers (128 printers to be exact). We have cups running from the following RPM:
For some reason, after a minute or 2 (what seems at random), printers are disabling themselves. WE have no idea why. Our cupsd.conf is the same from all our other systems, and they all print just fine. We had to create a script to enable the printers and we run it every minute (not my own handywork)
Code:
DISABLED=`lpstat -t | grep dis | head -1 | awk '{print $2}'`
while [ $DISABLED != "" ]
do
/usr/sbin/lpadmin -p $DISABLED -E
DISABLED=`lpstat -t | grep dis | head -1 | awk '{print $2}'`
done
I have enabled "debug" logging, but im not even sure what to look for.
can anyone help me in the right direction to better trouble shoot this. Thanks soo much!
Yes, i do have these log files, and i have enabled them to "debug" level (which logs almost everything).
I ran a "tail -f" of the error log, and its a lot of stuff, but nothing looks like errors.
Take a look in /var/spool/cups. Sometimes when you have printer errors you get unprinted jobs stuck in the spool. Delete all of the jobs in the cups spool and you may get rid of the one which cups is unable to handle for whatever reason. I have cleared printer jams this way a couple of times.
Max clients is at default (100), i have over 100 printers. However my other systems also have over 100 prints, with cups.conf max clients set at 100.
(clients = printers .. i assume)??
jailbait -- /var/spool/cups -- If a print job prints, is it kept in spool/cups?? or does it get cleared.
Currently i have 1018 line items in /var/spool/cups
Max clients is at default (100), i have over 100 printers. However my other systems also have over 100 prints, with cups.conf max clients set at 100.
(clients = printers .. i assume)??
jailbait -- /var/spool/cups -- If a print job prints, is it kept in spool/cups?? or does it get cleared.
Currently i have 1018 line items in /var/spool/cups
Yes, it is kept in /var/spool/cups. I wrote a script to clean the garbage out of my system once a week. One thing the cleanup script does is clear /var/spool/cups.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.