<?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: Adding printers in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046559#M434005</link>
    <description>Like this:&lt;BR /&gt;&lt;BR /&gt;echo "Backing up the spooler configuration to /var/sam/lp/lp.new....please wait..." ; /usr/sam/lbin/lpmgr -S -v -xsavedir=/var/sam/lp/ ; cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tar cvf lp.tar /var/sam/lp/&lt;BR /&gt;&lt;BR /&gt;scp that tarbal to new server.&lt;BR /&gt;&lt;BR /&gt;tar xvf lp.tar &lt;BR /&gt;&lt;BR /&gt;echo "Restoring the spooler configuration....please wait..."; /usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp/&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 14 May 2007 14:45:02 GMT</pubDate>
    <dc:creator>Geoff Wild</dc:creator>
    <dc:date>2007-05-14T14:45:02Z</dc:date>
    <item>
      <title>Adding printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046558#M434004</link>
      <description>We are switching to new hardware and HP-UX 11.23 in our future production environment.. In our current production, there are about 320 printers that were defined as network printers through Jet Direct... Is there any way that I can get around not having to add these printers manually? Can I copy over the /etc/lp/interface directory, and if so what other directory structures have to be copied over? Any help would be appreciated..Thanks, Ed..</description>
      <pubDate>Mon, 14 May 2007 14:14:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046558#M434004</guid>
      <dc:creator>EJ Stremler</dc:creator>
      <dc:date>2007-05-14T14:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046559#M434005</link>
      <description>Like this:&lt;BR /&gt;&lt;BR /&gt;echo "Backing up the spooler configuration to /var/sam/lp/lp.new....please wait..." ; /usr/sam/lbin/lpmgr -S -v -xsavedir=/var/sam/lp/ ; cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tar cvf lp.tar /var/sam/lp/&lt;BR /&gt;&lt;BR /&gt;scp that tarbal to new server.&lt;BR /&gt;&lt;BR /&gt;tar xvf lp.tar &lt;BR /&gt;&lt;BR /&gt;echo "Restoring the spooler configuration....please wait..."; /usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp/&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 May 2007 14:45:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046559#M434005</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-05-14T14:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046560#M434006</link>
      <description>lpmgr should work assuming that the other system is fairly recent. If the old box is running 11.00 or older (like 10.20), I would be concerned about printer script compatibility with the latest version of hppi. The alternative is to make a list of the printers on the old box, then create a simple script to add each printer to the new system. A very little known command is addqueue (from the hppi package). All that is needed is the IP address and the name to be used for the local queue:&lt;BR /&gt; &lt;BR /&gt;addqueue -h 12.34.56.78 -q myprn234</description>
      <pubDate>Mon, 14 May 2007 21:01:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046560#M434006</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-05-14T21:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Adding printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046561#M434007</link>
      <description>Thank you all for your valiable input.. I have a couple questions.. Is running lpmgr -S goring to create a new directory in /var/sam/lp/lp.new? Can I tar up the /var/sam/lp/lp.new instead and scp it over to the new system? I need to get the configuration from a production machine, so i just want to make sure that this will not effect any other printer configuration.. thanks again...Ed..&lt;BR /&gt;</description>
      <pubDate>Tue, 15 May 2007 09:05:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046561#M434007</guid>
      <dc:creator>EJ Stremler</dc:creator>
      <dc:date>2007-05-15T09:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Adding printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046562#M434008</link>
      <description>/var/sam/lp isn't used by the running spooler so it is safe to over write.&lt;BR /&gt;&lt;BR /&gt;For some reason, if you just use /var/sam/lp/lp.new, it won't restore.&lt;BR /&gt;&lt;BR /&gt;That's why I do the mv then tar it up.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 15 May 2007 09:10:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046562#M434008</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-05-15T09:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046563#M434009</link>
      <description>Hi Geoff - I see, so when you do the restore on the new system with lpmgr -R , then it populates /etc/interface, and /var/spool/lp, etc which are used by the spooler?.. thanks again - ed</description>
      <pubDate>Tue, 15 May 2007 09:15:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046563#M434009</guid>
      <dc:creator>EJ Stremler</dc:creator>
      <dc:date>2007-05-15T09:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046564#M434010</link>
      <description>Ed, that's right - it puts all the printer definitions in those dirs.  &lt;BR /&gt;&lt;BR /&gt;I hav'nt done it for some time, but I believe you have to shut the spooler down before you do the restore.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 15 May 2007 09:33:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046564#M434010</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-05-15T09:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Adding printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046565#M434011</link>
      <description>Shutting the scheduler down first with an lpshut? Then re-starting the scheduler with lpsched? thanks again Geoff..Or I can do all this within SAM? ed</description>
      <pubDate>Tue, 15 May 2007 09:36:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046565#M434011</guid>
      <dc:creator>EJ Stremler</dc:creator>
      <dc:date>2007-05-15T09:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046566#M434012</link>
      <description>Yes lpshut, then lpsched -v&lt;BR /&gt;&lt;BR /&gt;I prefer the command line  :)&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 15 May 2007 09:41:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046566#M434012</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-05-15T09:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046567#M434013</link>
      <description>Geoff - Just to let you know on one of our DEV systems I tried the "Save Spooler Configuration" through SAM, and it updated the /var/sam/lp directory, I checked the samlog and no indication of the scheduler being shut down, which makes me feel more comfortable using SAM on the existing production system. I found SAM generally stops from doing things that are not supposed to be done.. Although many other situations I do prefer using the command line.. I think when the restore of the spooler is done on the new system, SAM will shut the scheduler down, but there i don't care because there are no printers defined yet.. I will let you know, and thanks again.. Ed..</description>
      <pubDate>Tue, 15 May 2007 10:08:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046567#M434013</guid>
      <dc:creator>EJ Stremler</dc:creator>
      <dc:date>2007-05-15T10:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adding printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046568#M434014</link>
      <description>All worked like a charm and the 350 printers are now defined on the new servers by: saving the spooler configuration, copying /var/sam/lp to the new server, and then restoring the configuration.. Thanks for all your help and valuable information... Ed</description>
      <pubDate>Tue, 15 May 2007 12:30:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-printers/m-p/5046568#M434014</guid>
      <dc:creator>EJ Stremler</dc:creator>
      <dc:date>2007-05-15T12:30:14Z</dc:date>
    </item>
  </channel>
</rss>

