<?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: script to reset print spooler in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-reset-print-spooler/m-p/2700175#M932779</link>
    <description>Hi you can do as below&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/lp stop&lt;BR /&gt;/sbin/init.d/lp start&lt;BR /&gt;&lt;BR /&gt;That will restart the spooler&lt;BR /&gt;&lt;BR /&gt;put the script in cronjob.&lt;BR /&gt;&lt;BR /&gt;-pap&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 09 Apr 2002 16:59:28 GMT</pubDate>
    <dc:creator>pap</dc:creator>
    <dc:date>2002-04-09T16:59:28Z</dc:date>
    <item>
      <title>script to reset print spooler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-reset-print-spooler/m-p/2700173#M932777</link>
      <description>I capture text on a pc from my HP-UX 10.2 server. for some reason the spooler hangs and to get it going again i have to manually start and stop the print spooler almost daily. ie after a weeks vacation i have 8,000 small print requests in the que. If i had a script that would reset the spooler daily this wouldnt hang up my spooler.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;James</description>
      <pubDate>Tue, 09 Apr 2002 16:53:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-reset-print-spooler/m-p/2700173#M932777</guid>
      <dc:creator>James Wardlaw_1</dc:creator>
      <dc:date>2002-04-09T16:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: script to reset print spooler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-reset-print-spooler/m-p/2700174#M932778</link>
      <description>Start your script like this:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;then add your commands to it, then tell cron to run it once a day.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 09 Apr 2002 16:56:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-reset-print-spooler/m-p/2700174#M932778</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-04-09T16:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: script to reset print spooler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-reset-print-spooler/m-p/2700175#M932779</link>
      <description>Hi you can do as below&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/lp stop&lt;BR /&gt;/sbin/init.d/lp start&lt;BR /&gt;&lt;BR /&gt;That will restart the spooler&lt;BR /&gt;&lt;BR /&gt;put the script in cronjob.&lt;BR /&gt;&lt;BR /&gt;-pap&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Apr 2002 16:59:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-reset-print-spooler/m-p/2700175#M932779</guid>
      <dc:creator>pap</dc:creator>
      <dc:date>2002-04-09T16:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: script to reset print spooler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-reset-print-spooler/m-p/2700176#M932780</link>
      <description>&lt;BR /&gt;The real problem to SOLVE is WHY is it hanging the spool queue? Solve that problem and you don't need to "bounce" the spooler.&lt;BR /&gt;&lt;BR /&gt;Can any of this be answered?&lt;BR /&gt;* What are you "capturing"?&lt;BR /&gt;* how are you doing it (capturing)?&lt;BR /&gt;* how are you sending it to the print queue?&lt;BR /&gt;* is the printer hung?&lt;BR /&gt;* are there any "control" or "escape sequences" in the file being sent to the printer?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 09 Apr 2002 17:03:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-reset-print-spooler/m-p/2700176#M932780</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-04-09T17:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: script to reset print spooler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-reset-print-spooler/m-p/2700177#M932781</link>
      <description>Hi James&lt;BR /&gt;&lt;BR /&gt;First the reason as to why it happenes to be found out . Incase still you want the script&lt;BR /&gt; add the following to the cron of the root&lt;BR /&gt;&lt;BR /&gt;0 1 * * *  /usr/local/adm/lprestart&lt;BR /&gt;&lt;BR /&gt;and under the directory /usr/local/adm&lt;BR /&gt;&lt;BR /&gt;create and executable script &lt;BR /&gt;&lt;BR /&gt;#!bin/sh&lt;BR /&gt;/usr/sbin/lpshut&lt;BR /&gt;sleep 30&lt;BR /&gt;/usr/sbin/lpsched&lt;BR /&gt;&lt;BR /&gt;please make sure that the permissions are set to excutable &lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Tue, 09 Apr 2002 17:09:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-reset-print-spooler/m-p/2700177#M932781</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-04-09T17:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: script to reset print spooler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-reset-print-spooler/m-p/2700178#M932782</link>
      <description>You may want to check to see if you have the latest lpspool cumulative patch PHCO_25109 for 10.20. (No reboot required and no dependencies).&lt;BR /&gt;&lt;BR /&gt;It deals with spooler hangs and such -- maybe that is what you are encountering and it can be resolved with a patch.&lt;BR /&gt;&lt;BR /&gt;Hope that helps.&lt;BR /&gt;&lt;BR /&gt;Ross Martin&lt;BR /&gt;HP Response Center&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Apr 2002 17:26:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-reset-print-spooler/m-p/2700178#M932782</guid>
      <dc:creator>Ross Martin</dc:creator>
      <dc:date>2002-04-09T17:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: script to reset print spooler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-reset-print-spooler/m-p/2700179#M932783</link>
      <description>It's not normal for the spooler to hang. Have you kept your system up to date on patches? Not just lp spooler but ARPA networking and LVM and shells, etc?&lt;BR /&gt;&lt;BR /&gt;The process to shutdown the spooler and restart it is simply:&lt;BR /&gt;&lt;BR /&gt;# lpshut&lt;BR /&gt;# lpsched&lt;BR /&gt;&lt;BR /&gt;However, you might want to call the standard HP-UX start/stop script as in:&lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/lp stop&lt;BR /&gt;# /sbin/init.d/lp start&lt;BR /&gt;&lt;BR /&gt;Just put this into a script such as:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;  /sbin/init.d/lp stop&lt;BR /&gt;  /sbin/init.d/lp start&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But you might also check for hung instances of lp processes:&lt;BR /&gt;&lt;BR /&gt;# ps -u lp&lt;BR /&gt;&lt;BR /&gt;So the script becomes:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;  /sbin/init.d/lp stop&lt;BR /&gt;  sleep 2&lt;BR /&gt;&lt;BR /&gt;  PID4LP=$(/usr/bin/ps -u blh | awk '$1 !~ /PID/ {print $1}')&lt;BR /&gt;  if [ $PID4LP#} -ne 0 ]&lt;BR /&gt;  then&lt;BR /&gt;  for PIDLP in $PID4LP&lt;BR /&gt;  do&lt;BR /&gt;    /usr/bin/kill -9 $PIDLP&lt;BR /&gt;  done&lt;BR /&gt;  /sbin/init.d/lp start&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Put the above into a script, test it to see that it really works OK (hint, use sh -x ro run the script) and then add it to cron.</description>
      <pubDate>Tue, 09 Apr 2002 17:41:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-reset-print-spooler/m-p/2700179#M932783</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-04-09T17:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: script to reset print spooler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-reset-print-spooler/m-p/2700180#M932784</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All good advice especially for the patches.&lt;BR /&gt;&lt;BR /&gt;One more.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Check the value of nproc and maxuprc.&lt;BR /&gt;&lt;BR /&gt;If maxuprc is low the spooler can hang.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                       Steve Steel</description>
      <pubDate>Wed, 10 Apr 2002 05:56:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-reset-print-spooler/m-p/2700180#M932784</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-04-10T05:56:09Z</dc:date>
    </item>
  </channel>
</rss>

