- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Printing problem / how does it really work
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2010 06:57 AM
01-04-2010 06:57 AM
People can submit print jobs but they're not getting printed.
I have down a lpstat -o... on the printer queues and there are nothing enqueued BUT when I go down into the requests subdirectory, they're are plenty of files there.
Tried restarting the spooler, disabliong and enabling the printers and nothing happens.
Help?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2010 07:29 AM
01-04-2010 07:29 AM
Re: Printing problem / how does it really work
If yor /var is still full try running the 'cleanup -c
If your spooler is running try making sure your permissions aren't the issue:
Run
chmod 755 /opt/hpnpl
chown -R bin:bin /opt/hpnpl
chown -R lp /opt/hpnpl/tmp
Just a quick thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2010 07:46 AM
01-04-2010 07:46 AM
Re: Printing problem / how does it really work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2010 07:46 AM
01-04-2010 07:46 AM
Re: Printing problem / how does it really work
/var/spool is at 90%
SAM says the spooler is running.
Did do patch cleanup - non-eventful.
and the permissions on /opt/hpnpl is 755; and the ownership is as you stated.
The thing that is bothering me is I do the following:
echo "test" | lp -dhphelpdesk
then lpstat -ohphelpdesk shows no entries
and lpstat -vhphelpdesk just shows the device as /dev/null but nothing is on the printer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2010 07:50 AM
01-04-2010 07:50 AM
Re: Printing problem / how does it really work
Tried doing a /sbin/init.d/lp stop and /sbin/init.dlp start and it does say the line printer scheduler is started but I don't see a process lpsched.
Perhaps it is crashing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2010 08:13 AM
01-04-2010 08:13 AM
SolutionAlso while the scheduler is down, try deleting /var/spool/lp/FIFO and /var/spool/lp/SCHEDLOCK. Then start lpsched.
If lpsched starts ensure the queues are accept-ed and enable-d.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2010 08:32 AM
01-04-2010 08:32 AM
Re: Printing problem / how does it really work
I did so a ps -afu and did see a entry for an entry for a remote printer that hasn't been utilized for months and killed the process.
I also see some SAM related processed in addition to I think the application interfaces to lp like Lawson lapm and Unidata unpm.
With the spooler down (lpstat -r shows not running) there was no FIFO and SCHEDLOCK files.
I starteded lp /sbin/init.d/lp start, the files FIFO and SCHEDLOCK are created.
I did a lpstat -a | grep -v accept and only thing that shows up is a redirect - FYI - I got over 300 printer queues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2010 10:09 AM
01-04-2010 10:09 AM
Re: Printing problem / how does it really work
Did you check the permissions/ownership settings????
/Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2010 10:27 AM
01-04-2010 10:27 AM
Re: Printing problem / how does it really work
The next thing would be to work with the pstatus, qstatus and outputq files in /var/spool/lp. They may have been corrupted when /var filled up. DON'T delete those yet, you will lose ALL the printer queues. You will need to restore those 3 files from tape.
First you make a copy of these files (even if they may be corrupted)
cd /var/spool/lp
cp pstatus pstatus1
cp qstatus qstatus1
cp outputq outputq1
Shutdown the lp spooler and then delete the originals
/sbin/init.d/lp stop
ps -ef |grep lpsched
rm pstatus qstatus outputq
rm FIFO SCHEDLOCK
Restore the 3 files from tape and put them in /var/spool/lp, ensure FIFO and SCHEDLOCK do not exist and try starting the spooler (/sbin/init.d/lp start).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2010 10:43 AM
01-04-2010 10:43 AM
Re: Printing problem / how does it really work
Yeah, I did - I think I actually posted that I checked for the permissions and they were set the way you said they should be.
I do not see a lpsched process out there but the lpstat -r command says the scheduler is running.
Ray
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2010 11:29 AM
01-04-2010 11:29 AM
Re: Printing problem / how does it really work
I have started lpsched -v so I see entries in the log files as my users are submitting their print jobs.
But again they don't get printed and when I do a lpstat-o on the particular queues, thgere is no entries. But when I do to the request subdirectory, there are entries under each of the printer queue names.
Am I confusing the two? Outstanding requests/enqueued items vs contents of request?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2010 11:55 AM
01-04-2010 11:55 AM
Re: Printing problem / how does it really work
It looks like the first part works correctly. But the lpsched part is not. Assuming you have checked everything else so far, it all points out to a corruption in the printer queue database, namely the 3 files I mentioned above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2010 12:13 PM
01-04-2010 12:13 PM
Re: Printing problem / how does it really work
I did confirm everything under /var/spool/lp is in fact owned by lp with the exceptions of the symlinks which is owned by root.
As far as the copies, I assumed you had wanted me to copy them off with a ".1" at the end of it to preserve them prior to deleting them.
If I'm wrong, then oops but that's what I did.
I also assumed that you hade wanted me to try to print up the spooler with a new copy of each of the files saved off which I did.
Started the spooler and tried doing my quickie test of echo "test" | lp and didn't see it on the printer but did see it added into the request directory of the printer.
THere still is no lpsched process running tho.
Doing a restore is going to be a problem since we've been having backup issues and that's a different problem altogether.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2010 07:11 PM
01-04-2010 07:11 PM
Re: Printing problem / how does it really work
lpshut
cd /etc/lp/interface
cancel -e *
lpsched
queues should be clear at that point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2010 04:58 AM
01-05-2010 04:58 AM
Re: Printing problem / how does it really work
Just to let you all know that I reached out to you all because my support contract had lapsed w/o me knowing and I was in dire need. A parallel activity was to ram my renewal thru the pipeline and luckily for me I got the VAR to get me a courtesy call after I had the PO issued.
Karla of Singapore forwarded meea troublshooting document which right before me having to restore from backup the outputq, pstatus, and qstatus was to save them off and fire up a test print which worked. So then all was left was to apply a qucky script to re-submit the jobs stuck.
Thanks for all your help and suggestions.
Ray