lpstat return nothing (RHEL4)

Latest response

Hi, We've got a tough issue here. The cups command lpstat (with any option) returns nothing. CUPS service is running and most if not all printers work as normal. OS is RHEL4, pretty old. Please help. Thank you!

Responses

Hi Ning,

There is only one good advice you can get : drop RHEL 4 as soon as possible and perform a fresh installation of RHEL 7.5 ! :)

Regards,
Christian

Hi Christian,

Thank you for your advice. It is a business decision to keep the RHEL4 server to run some antique applications. It's beyond tech staff's control :(

nz

Hi Ning,

I'm speechless, how is it possible that an enterprise weighs using antique applications over safety and security ?
That "RHEL 4 thingie" is outdated, not maintained, unsupported and - most important - vulnerable "like hell" !!!
Tell your boss(es) that they can be glad that at the moment only a command returns nothing. What a disaster ...

Regards,
Christian

Hi Christian,

Budget or money is the key as always. Are you working for Red Hat?

nz

Hi Ning,

"Budget or money is the key", I know, but why don't you use the free CentOS 7.5 then ? And no, I'm not working for Red Hat, but as many others here I try to help Red Hat products users solving their problems. In your case anything else than what I said in my first response is more or less a waste of time. Please convince the responsible persons of your company to switch to a modern supported system - where it is makes sense and is worth the time to fix issues. When the company can't afford to pay for a current RHEL subscription then they should consider to run CentOS. :)

Regards,
Christian

pwd

/var/spool/cups

ls -l | wc -l

6578

Many stuff here. Can this be the cause?

Hi Ning,

This is a community support forum. Yes, sometimes Red Hat members would also pitch in to help customers.

Have you checked in logs to see if there is any hint or info about what is happening over there.. May be you could check in under the folder "/var/log/cups/" to see if there any log files over there which can help you... It is only a hint... What about restarting cups service ?

Hi Sadashiva,

Thank you for your reply. I did check error_log and access_log but didn't find anything useful. I forgot to mention that we have another test server under rhel4 that doesn't have the issue.

ls /var/spool/cups/d*

ls: /var/spool/cups/d*: No such file or directory

Why isn't there any data file?

nz

Hi Ning,

Start checking with ls -l /var/spool/cups ... if this directory does't contain a file or a folder beginning with the letter "d" then the command you have executed of course can't show anything else than "No such file or directory". :)

Regards,
Christian

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.