<?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: Unable to remove print queue in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691506#M383239</link>
    <description>Ok. Let's gather a little info.&lt;BR /&gt;&lt;BR /&gt;Is the printer queue you are trying to delete on the server that contains the spool?&lt;BR /&gt;&lt;BR /&gt;Please post the results of the following:&lt;BR /&gt;&lt;BR /&gt;cd /etc/lp&lt;BR /&gt;find . -name  PRT6455&lt;BR /&gt;&lt;BR /&gt;cd /var/spool/lp&lt;BR /&gt;find . -name PRT6455&lt;BR /&gt;&lt;BR /&gt;kev</description>
    <pubDate>Tue, 28 Sep 2010 15:43:14 GMT</pubDate>
    <dc:creator>Kevin Lister</dc:creator>
    <dc:date>2010-09-28T15:43:14Z</dc:date>
    <item>
      <title>Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691501#M383234</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am doing a cleanup of all the print queue in my system and while I was able to use "removequeue -q" to remove them, there's this one particular one that won't be removed.&lt;BR /&gt;&lt;BR /&gt;I also tried using SAM to remove but still it won't go.&lt;BR /&gt;&lt;BR /&gt;I tried also to use "lpadmin -x" but it's still there.&lt;BR /&gt;&lt;BR /&gt;How do I remove it?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Sep 2010 04:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691501#M383234</guid>
      <dc:creator>so.nimda</dc:creator>
      <dc:date>2010-09-27T04:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691502#M383235</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;have you tried with below command,&lt;BR /&gt;# cancel -e &lt;PRINT_QUEUE_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;please check the below link for your reference which may be useful to resolve your problem,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1285567872843+28353475&amp;amp;threadId=1218672" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1285567872843+28353475&amp;amp;threadId=1218672&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/PRINT_QUEUE_NAME&gt;</description>
      <pubDate>Mon, 27 Sep 2010 05:15:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691502#M383235</guid>
      <dc:creator>sarfaraj ahmad</dc:creator>
      <dc:date>2010-09-27T05:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691503#M383236</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;cancel [id ...] [printer ...] [-a] [-e] [-i] [-uuser]&lt;BR /&gt;&lt;BR /&gt;try manpage of cancel, lp ;&lt;BR /&gt;# man cancel</description>
      <pubDate>Mon, 27 Sep 2010 06:37:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691503#M383236</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2010-09-27T06:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691504#M383237</link>
      <description>Howdy,&lt;BR /&gt;&lt;BR /&gt;Folks, I think he is attempting to remove the queue itself and not the message in the queue.&lt;BR /&gt;&lt;BR /&gt;Is that correct?&lt;BR /&gt;&lt;BR /&gt;Did you try to use the -f switch with the removequeue command? The -f switch should force the removal.&lt;BR /&gt;&lt;BR /&gt;Are you getting any error messages? If so can you please post?&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;&lt;BR /&gt;kev</description>
      <pubDate>Mon, 27 Sep 2010 23:38:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691504#M383237</guid>
      <dc:creator>Kevin Lister</dc:creator>
      <dc:date>2010-09-27T23:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691505#M383238</link>
      <description>Hi Kevin,&lt;BR /&gt;&lt;BR /&gt;You are right. I am trying to remove the entire queue.&lt;BR /&gt;&lt;BR /&gt;Here's the error :&lt;BR /&gt;&lt;BR /&gt;# lpstat -pPRT6455&lt;BR /&gt;lpstat: printer "PRT6455" non-existent&lt;BR /&gt;&lt;BR /&gt;# removequeue -q PRT6455 -f&lt;BR /&gt;Could not cancel jobs for  PRT6455&lt;BR /&gt;&lt;BR /&gt;# lpadmin -xPRT6455&lt;BR /&gt;lpadmin: destination "PRT6455" non-existent&lt;BR /&gt;&lt;BR /&gt;I would like to remove this and recreate (or add) again.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; regards&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Sep 2010 08:52:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691505#M383238</guid>
      <dc:creator>so.nimda</dc:creator>
      <dc:date>2010-09-28T08:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691506#M383239</link>
      <description>Ok. Let's gather a little info.&lt;BR /&gt;&lt;BR /&gt;Is the printer queue you are trying to delete on the server that contains the spool?&lt;BR /&gt;&lt;BR /&gt;Please post the results of the following:&lt;BR /&gt;&lt;BR /&gt;cd /etc/lp&lt;BR /&gt;find . -name  PRT6455&lt;BR /&gt;&lt;BR /&gt;cd /var/spool/lp&lt;BR /&gt;find . -name PRT6455&lt;BR /&gt;&lt;BR /&gt;kev</description>
      <pubDate>Tue, 28 Sep 2010 15:43:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691506#M383239</guid>
      <dc:creator>Kevin Lister</dc:creator>
      <dc:date>2010-09-28T15:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691507#M383240</link>
      <description>Hi Kevin,&lt;BR /&gt;&lt;BR /&gt;Result as follows :&lt;BR /&gt;&lt;BR /&gt;root [/etc/lp]&lt;BR /&gt;# find . -name PRT6455&lt;BR /&gt;./interface/PRT6455&lt;BR /&gt;./interface/model.orig/PRT6455&lt;BR /&gt;./member/PRT6455&lt;BR /&gt;&lt;BR /&gt;root [/var/spool/lp]&lt;BR /&gt;# find . -name PRT6455&lt;BR /&gt;&lt;BR /&gt;root [/var/spool/lp]&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;It can be found in "/etc/lp" but not "/var/spool/lp".&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 28 Sep 2010 23:51:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691507#M383240</guid>
      <dc:creator>so.nimda</dc:creator>
      <dc:date>2010-09-28T23:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691508#M383241</link>
      <description>Ok. So try this first:&lt;BR /&gt;&lt;BR /&gt;cd /var/spool/lp/request&lt;BR /&gt;mkdir PRT6455&lt;BR /&gt;chown lp:lp PRT6455&lt;BR /&gt;chmod 755 PRT6455&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;You may want to look in /var/adm/syslog/syslog.log for any messages that may come up about the spooler. If no errors then proceed.&lt;BR /&gt;&lt;BR /&gt;Then start SAM. Double-click "Printers and Plotters", then "LP Spooler", then "Printers and Plotters".&lt;BR /&gt;&lt;BR /&gt;Select the line with PR6455 from the list of spoolers.&lt;BR /&gt;&lt;BR /&gt;Click on "Actions" and then click on "Remove".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If that fails to work then you may try the brute force method of removing the files by hand.&lt;BR /&gt;&lt;BR /&gt;Try this if the first method above doesn't help:&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/lp stop&lt;BR /&gt;cd /var/spool/lp/request&lt;BR /&gt;rm -r PR6455&lt;BR /&gt;cd /etc/lp&lt;BR /&gt;&lt;BR /&gt;rm interface/model.orig/PR6544&lt;BR /&gt;rm interface/PR6544&lt;BR /&gt;rm member/PR6544&lt;BR /&gt;&lt;BR /&gt;cd /var/sam/lp&lt;BR /&gt;&lt;BR /&gt;rm member/it_laser&lt;BR /&gt;rm interface/it_laser&lt;BR /&gt;rm interface/model.orig/it_laser&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/lp start&lt;BR /&gt;&lt;BR /&gt;Let us know how it goes.&lt;BR /&gt;&lt;BR /&gt;kev&lt;BR /&gt;&lt;BR /&gt;PS &lt;BR /&gt;&lt;BR /&gt;Keep in mind that stopping and starting the printer spooler may interrupt someones print job! So, be careful. ;o)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Sep 2010 01:07:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691508#M383241</guid>
      <dc:creator>Kevin Lister</dc:creator>
      <dc:date>2010-09-29T01:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691509#M383242</link>
      <description>Hi Kevin,&lt;BR /&gt;&lt;BR /&gt;Thanks for your patience and detailed reply.&lt;BR /&gt;&lt;BR /&gt;I have tried the first part (SAM -&amp;gt; Actions -&amp;gt; Remove) and the error is :&lt;BR /&gt;&lt;BR /&gt;"Lp destination "PRT6455" does not exist on &lt;HOST&gt;."&lt;BR /&gt;&lt;BR /&gt;By brute force, I have removed all files named "PRT6455" in the following directories :&lt;BR /&gt;- /var/spool/lp/request/&lt;BR /&gt;- /etc/lp/interface/model.orig/&lt;BR /&gt;- /etc/lp/interface/&lt;BR /&gt;- /etc/lp/member/&lt;BR /&gt;- /var/sam/lp/interface/model.orig/&lt;BR /&gt;- /var/sam/lp/interface/&lt;BR /&gt;- /var/sam/lp/member/&lt;BR /&gt;- /var/sam/lp/cinterface/&lt;BR /&gt;- /var/sam/lp/sinterface/&lt;BR /&gt;&lt;BR /&gt;Just to confirm that all traces of "PRT6455" has been removed, I do a "find . -name PRT6455 -print", there are no more files found.&lt;BR /&gt;&lt;BR /&gt;But when I go to "SAM-&amp;gt;Printers and Plotters-&amp;gt;LP Spooler-&amp;gt;Printers and Plotters", I can still see "PRT6455".&lt;BR /&gt;&lt;BR /&gt;This printer is stubborn....  :(&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/HOST&gt;</description>
      <pubDate>Thu, 30 Sep 2010 01:23:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691509#M383242</guid>
      <dc:creator>so.nimda</dc:creator>
      <dc:date>2010-09-30T01:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691510#M383243</link>
      <description>Hmmm. Do you see an entry for the printer in this file:&lt;BR /&gt;&lt;BR /&gt;/var/sam/lp/lpinfo&lt;BR /&gt;&lt;BR /&gt;If so, remove it!&lt;BR /&gt;&lt;BR /&gt;Let me know. ;o)&lt;BR /&gt;&lt;BR /&gt;kev</description>
      <pubDate>Thu, 30 Sep 2010 01:37:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691510#M383243</guid>
      <dc:creator>Kevin Lister</dc:creator>
      <dc:date>2010-09-30T01:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691511#M383244</link>
      <description>Hi Kevin,&lt;BR /&gt;&lt;BR /&gt;It's in "/var/sam/lp/lpinfo" and I have removed it.&lt;BR /&gt;&lt;BR /&gt;When I go to SAM, it's still there. And using SAM -&amp;gt; Actions -&amp;gt; Remove, the error is still there :&lt;BR /&gt;&lt;BR /&gt;"Lp destination "PRT6455" does not exist on &lt;HOST&gt;."&lt;BR /&gt;&lt;BR /&gt;This printer sure doesn't want to be removed.&lt;BR /&gt;&lt;BR /&gt;Thanks for working with me through this. &lt;BR /&gt;&lt;BR /&gt;Regards&lt;/HOST&gt;</description>
      <pubDate>Sat, 02 Oct 2010 08:18:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691511#M383244</guid>
      <dc:creator>so.nimda</dc:creator>
      <dc:date>2010-10-02T08:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691512#M383245</link>
      <description>No problem! I'm just sorry that you are having so much trouble with it. I've had similar problems as well.&lt;BR /&gt;&lt;BR /&gt;Have you stopped and restarted the lp daemon since since removing it from the lpinfo file?&lt;BR /&gt;&lt;BR /&gt;kev</description>
      <pubDate>Mon, 04 Oct 2010 18:02:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691512#M383245</guid>
      <dc:creator>Kevin Lister</dc:creator>
      <dc:date>2010-10-04T18:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691513#M383246</link>
      <description>Hi Kevin,&lt;BR /&gt;&lt;BR /&gt;No luck !  &lt;BR /&gt;&lt;BR /&gt;I have stopped the lp daemon, go to SAM -&amp;gt; Actions -&amp;gt; Remove, and the error is still there :&lt;BR /&gt;&lt;BR /&gt;"Lp destination "PRT6455" does not exist on &lt;HOST&gt;."&lt;BR /&gt;&lt;BR /&gt;I have also removed the IP address in /etc/hosts when I did the above.&lt;BR /&gt;&lt;BR /&gt;SAM somehow still remembers this entry even though we have removed all traces of it.&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;&lt;/HOST&gt;</description>
      <pubDate>Tue, 05 Oct 2010 01:46:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691513#M383246</guid>
      <dc:creator>so.nimda</dc:creator>
      <dc:date>2010-10-05T01:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691514#M383247</link>
      <description>&amp;gt;SAM somehow still remembers this entry even though we have removed all traces of it.&lt;BR /&gt;&lt;BR /&gt;I suppose you could use tusc to track down what SAM is doing and what files it is reading.&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Oct 2010 03:41:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691514#M383247</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-10-05T03:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691515#M383248</link>
      <description>That's a great idea. Start up SAM, attach to the process using tusc, and then go through the motions of deleting. Perhaps you can try to re-add it and then delete it.&lt;BR /&gt;&lt;BR /&gt;kev</description>
      <pubDate>Tue, 05 Oct 2010 07:30:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691515#M383248</guid>
      <dc:creator>Kevin Lister</dc:creator>
      <dc:date>2010-10-05T07:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691516#M383249</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;With my limited UX knowledge, I didn't dare to&lt;BR /&gt;attempt using "tusc". =)&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Oct 2010 08:47:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691516#M383249</guid>
      <dc:creator>so.nimda</dc:creator>
      <dc:date>2010-10-29T08:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691517#M383250</link>
      <description>Hi Kevin,&lt;BR /&gt;&lt;BR /&gt;Sorry for the late reply.&lt;BR /&gt;&lt;BR /&gt;I have managed to remove that printer queue. I didn't try "tusc" as I think it's beyond my expertise.&lt;BR /&gt;&lt;BR /&gt;Anyway, all the printer profiles and related files were "manually created" (by copying from a valid printer and renaming it) in all the locations and then using "remove queue" to remove it - and it worked.&lt;BR /&gt;&lt;BR /&gt;Thanks for all your patience and help. =)</description>
      <pubDate>Fri, 29 Oct 2010 08:47:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691517#M383250</guid>
      <dc:creator>so.nimda</dc:creator>
      <dc:date>2010-10-29T08:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691518#M383251</link>
      <description>&amp;gt;I didn't dare to attempt using "tusc". =)&lt;BR /&gt;&lt;BR /&gt;tusc isn't hard to use but you may have trouble limiting or interpreting the info.&lt;BR /&gt;&lt;BR /&gt;tusc -fp -o tusc.out -ea sam ...</description>
      <pubDate>Fri, 29 Oct 2010 23:53:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691518#M383251</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-10-29T23:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove print queue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691519#M383252</link>
      <description>That's great news! I suspected that re-adding and then removing may work. I'm so glad you were able to get it done. Take care and thanks for the points!&lt;BR /&gt;&lt;BR /&gt;kev</description>
      <pubDate>Fri, 29 Oct 2010 23:58:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-print-queue/m-p/4691519#M383252</guid>
      <dc:creator>Kevin Lister</dc:creator>
      <dc:date>2010-10-29T23:58:16Z</dc:date>
    </item>
  </channel>
</rss>

