<?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: lpadmin -x&amp;lt;printer&amp;gt; failing in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lpadmin-x-lt-printer-gt-failing/m-p/4411211#M353053</link>
    <description>&lt;!--!*#--&gt;TTr, I tried the following:&lt;BR /&gt;   "lpstat -c" returns nothing as expected&lt;BR /&gt;   "lpstat -o" retuns no entries&lt;BR /&gt;&lt;BR /&gt;I am really at a loss since I can print to print101 fine, but just cannot delete as shown in my original post. I had used teh commands below earlier to add print101 to a new class and then later delete the class:&lt;BR /&gt;   lpshut&lt;BR /&gt;   lpadmin -pprint101 -g0 -cTestClassPrint&lt;BR /&gt;   lpadmin -porljfac -g7 -cTestClassPrint&lt;BR /&gt;   lpsched&lt;BR /&gt;   ...&lt;BR /&gt;   lpshut&lt;BR /&gt;   lpadmin -xTestClassPrint&lt;BR /&gt;   lpsched</description>
    <pubDate>Thu, 30 Apr 2009 19:30:20 GMT</pubDate>
    <dc:creator>Marc Ahrendt</dc:creator>
    <dc:date>2009-04-30T19:30:20Z</dc:date>
    <item>
      <title>lpadmin -x&lt;printer&gt; failing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpadmin-x-lt-printer-gt-failing/m-p/4411209#M353051</link>
      <description>&lt;!--!*#--&gt;My issue on a K380 running 10.20:&lt;BR /&gt;   lpshut&lt;BR /&gt;   lpadmin -xprint101&lt;BR /&gt;      lpadmin: can't open class file&lt;BR /&gt;   lpsched&lt;BR /&gt;   lpstat -t | grep print101&lt;BR /&gt;      device for print101: /dev/null&lt;BR /&gt;      print101 accepting requests since Apr 29 15:23&lt;BR /&gt;      printer print101 is idle.  enabled since Apr 29 15:35&lt;BR /&gt;&lt;BR /&gt;My question:&lt;BR /&gt;   How do I get the system to remove this print queue from the spooler? "sam" gives the same error, and "jetadmin" does no better and only states "Cannot delete print101!". The only extra information I have is that print101 was a memeber of a print class, but that print class has been deleted.</description>
      <pubDate>Thu, 30 Apr 2009 16:36:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpadmin-x-lt-printer-gt-failing/m-p/4411209#M353051</guid>
      <dc:creator>Marc Ahrendt</dc:creator>
      <dc:date>2009-04-30T16:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: lpadmin -x&lt;printer&gt; failing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpadmin-x-lt-printer-gt-failing/m-p/4411210#M353052</link>
      <description>- Ensure that the clas is really deleted with "lpstat -c"&lt;BR /&gt;- Check if there are any pending pring jobs on the class or on the printer that you are trying to delete. "lpstat -o" or "ps -fu lp"</description>
      <pubDate>Thu, 30 Apr 2009 19:07:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpadmin-x-lt-printer-gt-failing/m-p/4411210#M353052</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2009-04-30T19:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: lpadmin -x&lt;printer&gt; failing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpadmin-x-lt-printer-gt-failing/m-p/4411211#M353053</link>
      <description>&lt;!--!*#--&gt;TTr, I tried the following:&lt;BR /&gt;   "lpstat -c" returns nothing as expected&lt;BR /&gt;   "lpstat -o" retuns no entries&lt;BR /&gt;&lt;BR /&gt;I am really at a loss since I can print to print101 fine, but just cannot delete as shown in my original post. I had used teh commands below earlier to add print101 to a new class and then later delete the class:&lt;BR /&gt;   lpshut&lt;BR /&gt;   lpadmin -pprint101 -g0 -cTestClassPrint&lt;BR /&gt;   lpadmin -porljfac -g7 -cTestClassPrint&lt;BR /&gt;   lpsched&lt;BR /&gt;   ...&lt;BR /&gt;   lpshut&lt;BR /&gt;   lpadmin -xTestClassPrint&lt;BR /&gt;   lpsched</description>
      <pubDate>Thu, 30 Apr 2009 19:30:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpadmin-x-lt-printer-gt-failing/m-p/4411211#M353053</guid>
      <dc:creator>Marc Ahrendt</dc:creator>
      <dc:date>2009-04-30T19:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: lpadmin -x&lt;printer&gt; failing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpadmin-x-lt-printer-gt-failing/m-p/4411212#M353054</link>
      <description>Something is throwing off lpadmin, maybe a leftover file from the class. Check in the lp directories /etc/lp/interface and more importantly the /var/spool/lp areas and specifically /var/spool/lp/request. Not sure what to look for but you will know when you see it.</description>
      <pubDate>Thu, 30 Apr 2009 20:43:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpadmin-x-lt-printer-gt-failing/m-p/4411212#M353054</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2009-04-30T20:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: lpadmin -x&lt;printer&gt; failing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpadmin-x-lt-printer-gt-failing/m-p/4411213#M353055</link>
      <description>The spooler's pstatus file is corrupted. This a binary file so editing it won't work. You'll need to use the famous spoolkick procedure. Essentially, you remove every printer (keeping a record of what they are and how they are connected). Once you have removed as much as possible, you then zero out the 3 status files:&lt;BR /&gt; &lt;BR /&gt;cd /var/spool/lp&lt;BR /&gt;cat /dev/null &amp;gt; pstatus&lt;BR /&gt;cat /dev/null &amp;gt; qstatus&lt;BR /&gt;cat /dev/null &amp;gt; outputqjobs that are in the &lt;BR /&gt; &lt;BR /&gt;Also remove any leftover files and directories in /etc/lp/interface and /etc/lp/class.&lt;BR /&gt; &lt;BR /&gt;Now add a printer and verify normal operation.</description>
      <pubDate>Fri, 01 May 2009 01:03:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpadmin-x-lt-printer-gt-failing/m-p/4411213#M353055</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-05-01T01:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: lpadmin -x&lt;printer&gt; failing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpadmin-x-lt-printer-gt-failing/m-p/4411214#M353056</link>
      <description>&amp;gt;Bill: You'll need to use the famous spoolkick procedure&lt;BR /&gt;&lt;BR /&gt;Would using SAM's save and restore LP config work?  Or would it copy the corruption?</description>
      <pubDate>Fri, 01 May 2009 03:57:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpadmin-x-lt-printer-gt-failing/m-p/4411214#M353056</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-01T03:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: lpadmin -x&lt;printer&gt; failing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpadmin-x-lt-printer-gt-failing/m-p/4411215#M353057</link>
      <description>&lt;!--!*#--&gt;TTr: your approach was somewhat helpful ...but using "ls" to look around never raised any flags for what was wrong&lt;BR /&gt;&lt;BR /&gt;Bill: your approach along with some specifics was more helpful in that it made me believe stronger the all the files were intact but most likley one or more corrupted ...but using your approach was definitely a last resort&lt;BR /&gt;&lt;BR /&gt;Dennis: your approach for using "/usr/sam/lbin/lpmgr" would do as you thought ...simply make a backup copy of a corrupted spooler configuration&lt;BR /&gt;&lt;BR /&gt;In my case as described above there was some "mild" corruption and below was how I resolved it:&lt;BR /&gt;&lt;BR /&gt;lpshut&lt;BR /&gt;rm /etc/lp/interface/model.orig/print101 /etc/lp/interface/print101 /etc/lp/member/print101&lt;BR /&gt;rmdir /var/spool/lp/request/print101&lt;BR /&gt;lpadmin -pprint101 -v/dev/null -mlaserjet&lt;BR /&gt;lpadmin -xprint101&lt;BR /&gt;lpsched&lt;BR /&gt;</description>
      <pubDate>Fri, 01 May 2009 05:14:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpadmin-x-lt-printer-gt-failing/m-p/4411215#M353057</guid>
      <dc:creator>Marc Ahrendt</dc:creator>
      <dc:date>2009-05-01T05:14:40Z</dc:date>
    </item>
  </channel>
</rss>

