<?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 Unable to remove printer in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853533#M94204</link>
    <description>Hi all.&lt;BR /&gt;&lt;BR /&gt;I've tried to add a network printer from the command line using lpadmin. I set the model incorrectly, and now want to delete the printer to readd it. I cannot delete the printer using &lt;LPADMIN -xid=""&gt; - I get the error "destination non-existent". The relevant files exist in /etc/lp/interface etc, queue exists in /var/spool/lp, if I run an &lt;LPSTAT -t=""&gt; it lists the destination as "not accepting requests". I have tried deleting the printer using sam and get the same error.  &lt;BR /&gt;&lt;BR /&gt;Have checked in /var/spool/lp and the printer files exist there also. However the printer is not listed if I run a strings on /var/spool/lp/pstatus or ~qstatus.&lt;BR /&gt;&lt;BR /&gt;How can I delete the printer?&lt;BR /&gt;&lt;BR /&gt;&lt;/LPSTAT&gt;&lt;/LPADMIN&gt;</description>
    <pubDate>Wed, 27 Nov 2002 14:45:46 GMT</pubDate>
    <dc:creator>Nick Brennan</dc:creator>
    <dc:date>2002-11-27T14:45:46Z</dc:date>
    <item>
      <title>Unable to remove printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853533#M94204</link>
      <description>Hi all.&lt;BR /&gt;&lt;BR /&gt;I've tried to add a network printer from the command line using lpadmin. I set the model incorrectly, and now want to delete the printer to readd it. I cannot delete the printer using &lt;LPADMIN -xid=""&gt; - I get the error "destination non-existent". The relevant files exist in /etc/lp/interface etc, queue exists in /var/spool/lp, if I run an &lt;LPSTAT -t=""&gt; it lists the destination as "not accepting requests". I have tried deleting the printer using sam and get the same error.  &lt;BR /&gt;&lt;BR /&gt;Have checked in /var/spool/lp and the printer files exist there also. However the printer is not listed if I run a strings on /var/spool/lp/pstatus or ~qstatus.&lt;BR /&gt;&lt;BR /&gt;How can I delete the printer?&lt;BR /&gt;&lt;BR /&gt;&lt;/LPSTAT&gt;&lt;/LPADMIN&gt;</description>
      <pubDate>Wed, 27 Nov 2002 14:45:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853533#M94204</guid>
      <dc:creator>Nick Brennan</dc:creator>
      <dc:date>2002-11-27T14:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853534#M94205</link>
      <description>I suspect the printer was not created correctly, hence some printer config file does not get updated/created. You said the file exist, did you check it completely. For exmample :-&lt;BR /&gt;1) /usr/spool/lp/interface/&lt;PRINTERNAME&gt;&lt;BR /&gt;2) The dir /usr/spool/lp/request/&lt;PRINTERNAME&gt;  &lt;BR /&gt;3) /usr/spool/lp/member/&lt;PRINTERNAME&gt;&lt;BR /&gt;If they don't simply create a "dummy" file by using touch and try lpadmin -x it again.&lt;BR /&gt;&lt;/PRINTERNAME&gt;&lt;/PRINTERNAME&gt;&lt;/PRINTERNAME&gt;</description>
      <pubDate>Wed, 27 Nov 2002 15:00:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853534#M94205</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-11-27T15:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853535#M94206</link>
      <description>First shutdown the spooler:&lt;BR /&gt;&lt;BR /&gt;        lpshut&lt;BR /&gt;&lt;BR /&gt; Change to the /etc/lp/member directory and do a:&lt;BR /&gt;&lt;BR /&gt;        touch ID&lt;BR /&gt;&lt;BR /&gt; Then do a:&lt;BR /&gt;&lt;BR /&gt;        chown lp ID&lt;BR /&gt;&lt;BR /&gt; Change to the ../interface directory and do a:&lt;BR /&gt;&lt;BR /&gt;        touch ID&lt;BR /&gt;&lt;BR /&gt; Then do a:&lt;BR /&gt;&lt;BR /&gt;        chown lp ID&lt;BR /&gt;&lt;BR /&gt; Change to to /var/spool/lp/request directory and do a:&lt;BR /&gt;&lt;BR /&gt;        mkdir ID&lt;BR /&gt;&lt;BR /&gt; Then do a:&lt;BR /&gt;&lt;BR /&gt;        chown lp ID&lt;BR /&gt;&lt;BR /&gt; Next execute:&lt;BR /&gt;&lt;BR /&gt;        lpadmin -xID&lt;BR /&gt;&lt;BR /&gt;Restart the spooler with a:&lt;BR /&gt;&lt;BR /&gt;        lpsched&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Nov 2002 15:04:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853535#M94206</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2002-11-27T15:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853536#M94207</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;please recreate the missing subdirectory /usr/spool/lp/request/&lt;PRINTER_NAME&gt; Then the remove should work.&lt;BR /&gt;&lt;BR /&gt;Or try by setting following files to:&lt;BR /&gt;&lt;BR /&gt;# &amp;gt;/var/spool/lp/qstatus&lt;BR /&gt;# &amp;gt;/var/spool/lp/pstatus&lt;BR /&gt;# &amp;gt;/var/spool/lp/default,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Armin&lt;/PRINTER_NAME&gt;</description>
      <pubDate>Wed, 27 Nov 2002 15:09:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853536#M94207</guid>
      <dc:creator>Armin Feller</dc:creator>
      <dc:date>2002-11-27T15:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853537#M94208</link>
      <description>Hi Nick&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There are some remanants of the printer name existing under /etc/lp directory , incase you cannot delete it , you may try to reinstall it using the same name and then deldeting it ,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;lpshut&lt;BR /&gt;lpadmin -p&amp;lt; old printer name &amp;gt; -v /dev/null -m rawlp &lt;BR /&gt;accept pritner name&lt;BR /&gt;enable printer name&lt;BR /&gt;and then lpadmin -x printer name&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;this will recretate the ques properly so taht u can delete it&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Wed, 27 Nov 2002 15:24:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853537#M94208</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-11-27T15:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853538#M94209</link>
      <description>All - thanks for your swift help!&lt;BR /&gt;&lt;BR /&gt;I stopped the spooler, checked files existed under /etc/lp* and /var/spool/lp/*, and added the queue directory to /var/spool/lp/request, which was missing.Tried running &lt;LPADMIN -xid=""&gt;. &lt;BR /&gt;&lt;BR /&gt;This errors with "lpadmin: can't remove printer", yet deletes the "ID" directory from /var/spool/lp/request. It doesn't delete any of the other files though. I've checked perms on all "ID" printer files, which are set to lp:lp, 755 on directories and 644 on files.&lt;/LPADMIN&gt;</description>
      <pubDate>Wed, 27 Nov 2002 15:27:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853538#M94209</guid>
      <dc:creator>Nick Brennan</dc:creator>
      <dc:date>2002-11-27T15:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853539#M94210</link>
      <description>Manoj - just tried running this - I then get "lpadmin: cannot open member file". The member file exists in /etc/lp/member.</description>
      <pubDate>Wed, 27 Nov 2002 15:31:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853539#M94210</guid>
      <dc:creator>Nick Brennan</dc:creator>
      <dc:date>2002-11-27T15:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853540#M94211</link>
      <description>Nick can you access from the ITRC knowledge base doc id : UPRTKBAN00000857  2Script to verify and check lp spooler printer configuration"  .... it looks like it may be of use here .... ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Nov 2002 15:57:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853540#M94211</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2002-11-27T15:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853541#M94212</link>
      <description>Looks like the permissions in /etc/lp parent directories were all screwed up. I've changed these and the printers can be deleted. Doh.......&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;;-)</description>
      <pubDate>Wed, 27 Nov 2002 17:33:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-remove-printer/m-p/2853541#M94212</guid>
      <dc:creator>Nick Brennan</dc:creator>
      <dc:date>2002-11-27T17:33:19Z</dc:date>
    </item>
  </channel>
</rss>

