<?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: Remove all printers from a system in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-all-printers-from-a-system/m-p/2670143#M50728</link>
    <description>Probably the easiest way is to use SAM.&lt;BR /&gt;&lt;BR /&gt;Go into SAM -&amp;gt; Printers and Plotters -&amp;gt; LP Spooler -&amp;gt; Printers and Plotters&lt;BR /&gt;&lt;BR /&gt;Once there just go down the list and select every printer on the list.  If you are in the GUI, you must hold down the CTRL key as you click each printer.  If you are in the TUI then you can just scroll with the arrows and hit the space bar to select each printer.&lt;BR /&gt;&lt;BR /&gt;Once all are selected go up to the Actions menu and select Remove.  It will then prompt you asking if you are sure you want to remove each printer.  Say yes and each will be removed.</description>
    <pubDate>Fri, 22 Feb 2002 15:23:58 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2002-02-22T15:23:58Z</dc:date>
    <item>
      <title>Remove all printers from a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-all-printers-from-a-system/m-p/2670142#M50727</link>
      <description>I need to remove all the printers on one of my servers and start out fresh by restoring the spooler from another system.  I can do the restore of the spooler but I do not know how to remove all the printer at one time.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Craig</description>
      <pubDate>Fri, 22 Feb 2002 15:18:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-all-printers-from-a-system/m-p/2670142#M50727</guid>
      <dc:creator>Craig A. Sharp</dc:creator>
      <dc:date>2002-02-22T15:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all printers from a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-all-printers-from-a-system/m-p/2670143#M50728</link>
      <description>Probably the easiest way is to use SAM.&lt;BR /&gt;&lt;BR /&gt;Go into SAM -&amp;gt; Printers and Plotters -&amp;gt; LP Spooler -&amp;gt; Printers and Plotters&lt;BR /&gt;&lt;BR /&gt;Once there just go down the list and select every printer on the list.  If you are in the GUI, you must hold down the CTRL key as you click each printer.  If you are in the TUI then you can just scroll with the arrows and hit the space bar to select each printer.&lt;BR /&gt;&lt;BR /&gt;Once all are selected go up to the Actions menu and select Remove.  It will then prompt you asking if you are sure you want to remove each printer.  Say yes and each will be removed.</description>
      <pubDate>Fri, 22 Feb 2002 15:23:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-all-printers-from-a-system/m-p/2670143#M50728</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-02-22T15:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all printers from a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-all-printers-from-a-system/m-p/2670144#M50729</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Two options:&lt;BR /&gt;&lt;BR /&gt;1) SAM -&amp;gt; Printer configuration  ( select all printers and remove it)&lt;BR /&gt;&lt;BR /&gt;2) lpadmin -xprinter_name&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Fri, 22 Feb 2002 15:25:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-all-printers-from-a-system/m-p/2670144#M50729</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-02-22T15:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all printers from a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-all-printers-from-a-system/m-p/2670145#M50730</link>
      <description>for PRINTER in `lpstat -a |cut -d" " -f1`; do&lt;BR /&gt;   lpadmin -x $PRINTER&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;mark</description>
      <pubDate>Fri, 22 Feb 2002 15:27:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-all-printers-from-a-system/m-p/2670145#M50730</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2002-02-22T15:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all printers from a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-all-printers-from-a-system/m-p/2670146#M50731</link>
      <description>Try this ..&lt;BR /&gt;&lt;BR /&gt;# for P in `lpstat|grep \^printer|awk '{print $4}'`&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; lpadmin -x$P&lt;BR /&gt;&amp;gt; done</description>
      <pubDate>Fri, 22 Feb 2002 15:31:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-all-printers-from-a-system/m-p/2670146#M50731</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-02-22T15:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all printers from a system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-all-printers-from-a-system/m-p/2670147#M50732</link>
      <description>Got it....Here is my solution:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl -w&lt;BR /&gt;&lt;BR /&gt;open (PRINTERS, "printers.out") || die "$!";&lt;BR /&gt;&lt;BR /&gt;@printers = &lt;PRINTERS&gt;;&lt;BR /&gt;&lt;BR /&gt;foreach (@printers) {&lt;BR /&gt;&lt;BR /&gt;system "lpadmin -x$_";&lt;BR /&gt;&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;printers.out is a list of the printers extracted from the /etc/lp directory.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;Craig&lt;/PRINTERS&gt;</description>
      <pubDate>Fri, 22 Feb 2002 15:36:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-all-printers-from-a-system/m-p/2670147#M50732</guid>
      <dc:creator>Craig A. Sharp</dc:creator>
      <dc:date>2002-02-22T15:36:57Z</dc:date>
    </item>
  </channel>
</rss>

