<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Printing problem / how does it really work in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557974#M371371</link>
    <description>Hi Rita,&lt;BR /&gt;&lt;BR /&gt;/var/spool is at 90%&lt;BR /&gt;&lt;BR /&gt;SAM says the spooler is running.&lt;BR /&gt;&lt;BR /&gt;Did do patch cleanup - non-eventful.&lt;BR /&gt; and the permissions on /opt/hpnpl is 755; and the ownership is as you stated.&lt;BR /&gt;&lt;BR /&gt;The thing that is bothering me is I do the following:&lt;BR /&gt;echo "test" | lp -dhphelpdesk &lt;BR /&gt;then lpstat -ohphelpdesk shows no entries&lt;BR /&gt;and lpstat -vhphelpdesk just shows the device as /dev/null but nothing is on the printer.</description>
    <pubDate>Mon, 04 Jan 2010 15:46:44 GMT</pubDate>
    <dc:creator>Raymond Wu - MTG</dc:creator>
    <dc:date>2010-01-04T15:46:44Z</dc:date>
    <item>
      <title>Printing problem / how does it really work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557971#M371368</link>
      <description>Ran out of space on /var due to another problem with SCSI timeouts.&lt;BR /&gt;&lt;BR /&gt;People can submit print jobs but they're not getting printed.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Tried restarting the spooler, disabliong and enabling the printers and nothing happens.&lt;BR /&gt;&lt;BR /&gt;Help?</description>
      <pubDate>Mon, 04 Jan 2010 14:57:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557971#M371368</guid>
      <dc:creator>Raymond Wu - MTG</dc:creator>
      <dc:date>2010-01-04T14:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Printing problem / how does it really work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557972#M371369</link>
      <description>First-&lt;BR /&gt;&lt;BR /&gt;If yor /var is still full try running the 'cleanup -c &lt;X&gt;' command to get you some quick space.  [ man cleanup ]&lt;BR /&gt;&lt;BR /&gt;If your spooler is running try making sure your permissions aren't the issue:&lt;BR /&gt;&lt;BR /&gt;Run&lt;BR /&gt;&lt;BR /&gt;chmod 755 /opt/hpnpl&lt;BR /&gt;chown -R bin:bin /opt/hpnpl &lt;BR /&gt;chown -R lp /opt/hpnpl/tmp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Just a quick thought,&lt;BR /&gt;Rita&lt;/X&gt;</description>
      <pubDate>Mon, 04 Jan 2010 15:29:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557972#M371369</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2010-01-04T15:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Printing problem / how does it really work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557973#M371370</link>
      <description>If you can, shut down the system spooler (/sbin/init.d/lp stop). Then check for any processes that are owned by the lp user (ps -afu lp). There may be lp interface scripts that are in a hung state and you may have to kill them manually. After cleaning up all the hung lp processes start up the system spooler.</description>
      <pubDate>Mon, 04 Jan 2010 15:46:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557973#M371370</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2010-01-04T15:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Printing problem / how does it really work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557974#M371371</link>
      <description>Hi Rita,&lt;BR /&gt;&lt;BR /&gt;/var/spool is at 90%&lt;BR /&gt;&lt;BR /&gt;SAM says the spooler is running.&lt;BR /&gt;&lt;BR /&gt;Did do patch cleanup - non-eventful.&lt;BR /&gt; and the permissions on /opt/hpnpl is 755; and the ownership is as you stated.&lt;BR /&gt;&lt;BR /&gt;The thing that is bothering me is I do the following:&lt;BR /&gt;echo "test" | lp -dhphelpdesk &lt;BR /&gt;then lpstat -ohphelpdesk shows no entries&lt;BR /&gt;and lpstat -vhphelpdesk just shows the device as /dev/null but nothing is on the printer.</description>
      <pubDate>Mon, 04 Jan 2010 15:46:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557974#M371371</guid>
      <dc:creator>Raymond Wu - MTG</dc:creator>
      <dc:date>2010-01-04T15:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Printing problem / how does it really work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557975#M371372</link>
      <description>lpsched isn't there.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Perhaps it is crashing?</description>
      <pubDate>Mon, 04 Jan 2010 15:50:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557975#M371372</guid>
      <dc:creator>Raymond Wu - MTG</dc:creator>
      <dc:date>2010-01-04T15:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Printing problem / how does it really work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557976#M371373</link>
      <description>While the scheduler is down, did you check for orphaned processes owned by lp when the scheduler is down? &lt;BR /&gt;Also while the scheduler is down, try deleting /var/spool/lp/FIFO and /var/spool/lp/SCHEDLOCK. Then start lpsched. &lt;BR /&gt;If lpsched starts ensure the queues are accept-ed and enable-d.</description>
      <pubDate>Mon, 04 Jan 2010 16:13:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557976#M371373</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2010-01-04T16:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Printing problem / how does it really work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557977#M371374</link>
      <description>Hi TTR,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;I also see some SAM related processed in addition to I think the application interfaces to lp like Lawson lapm and Unidata unpm.&lt;BR /&gt;&lt;BR /&gt;With the spooler down (lpstat -r shows not running) there was no FIFO and SCHEDLOCK files.&lt;BR /&gt;&lt;BR /&gt;I starteded lp /sbin/init.d/lp start, the files FIFO and SCHEDLOCK are created.&lt;BR /&gt;&lt;BR /&gt;I did a lpstat -a | grep -v accept and only thing that shows up is a redirect - FYI - I got over 300 printer queues.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Jan 2010 16:32:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557977#M371374</guid>
      <dc:creator>Raymond Wu - MTG</dc:creator>
      <dc:date>2010-01-04T16:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Printing problem / how does it really work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557978#M371375</link>
      <description>To each his own...I generally use lpshut and lpsched to stop/start print services respectively.  That way you should see lpsched when you ps -ef.&lt;BR /&gt;&lt;BR /&gt;Did you check the permissions/ownership settings????&lt;BR /&gt;&lt;BR /&gt;/Rita</description>
      <pubDate>Mon, 04 Jan 2010 18:09:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557978#M371375</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2010-01-04T18:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Printing problem / how does it really work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557979#M371376</link>
      <description>Check if the permissions in /var/spool are good, all files (not soft links) should be owned by the lp user. If they are not change the owner to "lp".&lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;First you make a copy of these files (even if they may be corrupted)&lt;BR /&gt;&lt;BR /&gt;cd /var/spool/lp&lt;BR /&gt;cp pstatus pstatus1&lt;BR /&gt;cp qstatus qstatus1&lt;BR /&gt;cp outputq outputq1&lt;BR /&gt;&lt;BR /&gt;Shutdown the lp spooler and then delete the originals&lt;BR /&gt;/sbin/init.d/lp stop&lt;BR /&gt;ps -ef |grep lpsched&lt;BR /&gt;rm pstatus qstatus outputq&lt;BR /&gt;rm FIFO SCHEDLOCK&lt;BR /&gt;&lt;BR /&gt;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).&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Jan 2010 18:27:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557979#M371376</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2010-01-04T18:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Printing problem / how does it really work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557980#M371377</link>
      <description>Hi Rita,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;I do not see a lpsched process out there but the lpstat -r command says the scheduler is running.&lt;BR /&gt;&lt;BR /&gt;Ray</description>
      <pubDate>Mon, 04 Jan 2010 18:43:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557980#M371377</guid>
      <dc:creator>Raymond Wu - MTG</dc:creator>
      <dc:date>2010-01-04T18:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Printing problem / how does it really work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557981#M371378</link>
      <description>I think I am at the point I need to ask again how exactly does printing work.&lt;BR /&gt;&lt;BR /&gt;I have started lpsched -v so I see entries in the log files as my users are submitting their print jobs.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Am I confusing the two?  Outstanding requests/enqueued items vs contents of request?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Jan 2010 19:29:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557981#M371378</guid>
      <dc:creator>Raymond Wu - MTG</dc:creator>
      <dc:date>2010-01-04T19:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Printing problem / how does it really work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557982#M371379</link>
      <description>Roughly, it is a two part process. First, the users use the "lp" command to *submit* their files to the printing system. The lp command takes the file along with the appropriate options and puts in in the /var/spool/lp/request/que-name as a print job (job sequence number) to be printed out. Second the lpsched monitors the spool area and when it sees a print job, it takes it and invokes one of the /etc/lp/interface/que-name scripts to actually send that print job file to the printer device.&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Mon, 04 Jan 2010 19:55:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557982#M371379</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2010-01-04T19:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Printing problem / how does it really work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557983#M371380</link>
      <description>Hi Rita,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;If I'm wrong, then oops but that's what I did.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;THere still is no lpsched process running tho.&lt;BR /&gt;&lt;BR /&gt;Doing a restore is going to be a problem since we've been having backup issues and that's a different problem altogether.</description>
      <pubDate>Mon, 04 Jan 2010 20:13:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557983#M371380</guid>
      <dc:creator>Raymond Wu - MTG</dc:creator>
      <dc:date>2010-01-04T20:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Printing problem / how does it really work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557984#M371381</link>
      <description>I have had this problem very often and here is what I do to clear it. THIS WILL CLEAR ALL PRINT JOBS&lt;BR /&gt;&lt;BR /&gt;lpshut&lt;BR /&gt;cd /etc/lp/interface&lt;BR /&gt;cancel -e *&lt;BR /&gt;lpsched&lt;BR /&gt;&lt;BR /&gt;queues should be clear at that point.</description>
      <pubDate>Tue, 05 Jan 2010 03:11:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557984#M371381</guid>
      <dc:creator>Albert Smith_1</dc:creator>
      <dc:date>2010-01-05T03:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Printing problem / how does it really work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557985#M371382</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Thanks for all your help and suggestions.&lt;BR /&gt;&lt;BR /&gt;Ray</description>
      <pubDate>Tue, 05 Jan 2010 12:58:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-problem-how-does-it-really-work/m-p/4557985#M371382</guid>
      <dc:creator>Raymond Wu - MTG</dc:creator>
      <dc:date>2010-01-05T12:58:37Z</dc:date>
    </item>
  </channel>
</rss>

