<?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: Moving printers in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/4052035#M304664</link>
    <description>Oops, I'm stupid. I noticed a few typing booboo's in my earlier post but spelling count in UNIX; here's the (hopefully) flawless procedure:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1) Get your hostname resolution working on the new box (/etc/hosts, NIS, NIS+, DNS, LDAP) as it does on the old so that printer hostnames can be resolved.&lt;BR /&gt;&lt;BR /&gt;2) Install the JetDirect software on the new box.&lt;BR /&gt;&lt;BR /&gt;3) On the old box:&lt;BR /&gt;lpshut&lt;BR /&gt;/usr/sam/lpbin/lpmgr -S -xsavedir=/var/sam/lp&lt;BR /&gt;cd /var/sam&lt;BR /&gt;chown -R lp:lp lp # this prevents problems later when we restore&lt;BR /&gt;find lp -print | cpio -ocv &amp;gt; /var/tmp/samlp.cpio&lt;BR /&gt;lpsched&lt;BR /&gt;&lt;BR /&gt;4) Copy /var/tmp/samlp.cpio from the old box to the new using rcp, sftp, ftp, ...&lt;BR /&gt;&lt;BR /&gt;5) On the new box:&lt;BR /&gt;cd /&lt;BR /&gt;lpshut&lt;BR /&gt;find ./etc/lp ./var/spool/lp -print | cpio -ocv &amp;gt; /var/tmp/lp.cpio # just in case&lt;BR /&gt;&lt;BR /&gt;6) cd /var/sam&lt;BR /&gt;cpio -icvdum &amp;lt; /var/tmp/samlp.cpio&lt;BR /&gt;/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp&lt;BR /&gt;&lt;BR /&gt;7) lpsched&lt;BR /&gt;</description>
    <pubDate>Wed, 08 Aug 2007 17:16:38 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2007-08-08T17:16:38Z</dc:date>
    <item>
      <title>Moving printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/4052031#M304660</link>
      <description>Hello HP experts,&lt;BR /&gt;&lt;BR /&gt;I am migrating printers from my K-380 under 11iv1 to my rp-3410 running 11iv2. I copied everything under /etc/lp and /var/spool/lp but now nothing works. How do I fix this?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Steve</description>
      <pubDate>Wed, 08 Aug 2007 11:38:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/4052031#M304660</guid>
      <dc:creator>Steve Start</dc:creator>
      <dc:date>2007-08-08T11:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Moving printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/4052032#M304661</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Printer management:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/438861-003/438861-003.pdf" target="_blank"&gt;http://docs.hp.com/en/438861-003/438861-003.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This might be a job for sam.&lt;BR /&gt;&lt;BR /&gt;If the printer worked under 11.11 it should work under 11.23.&lt;BR /&gt;&lt;BR /&gt;I think running through configuration is the way to go here.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 08 Aug 2007 11:49:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/4052032#M304661</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-08-08T11:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Moving printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/4052033#M304662</link>
      <description>First, while your procedure, in principle, works, lp is extremely sensitive to file/directory ownership, group, and mode so if you simply used rcp or ftp, much of that was lost. You should create a tarball or cpio file to copy from one to the other. Your procedure would then work for like version to like version (11.11 to 11.11; 11.23 to 11.23, and sometimes for unlike to unlike 11.0 to 11.11). However, the lp subsystem is a bit different (and imcompatible) between 11.11 and 11.23 so here is how I would approach it:&lt;BR /&gt;&lt;BR /&gt;1) Get your hostname resolution working on the new box (/etc/hosts, NIS, NIS+, DNS, LDAP) as it does on the old so that printer hostnames can be resolved.&lt;BR /&gt;&lt;BR /&gt;2) Install the JetDirect software on the new box.&lt;BR /&gt;&lt;BR /&gt;3) On the old box:&lt;BR /&gt;/usr/sam/lpbin/lpmgr -S -xsavedir=/var/sam/lp&lt;BR /&gt;cd /var/sam&lt;BR /&gt;chown -R lp:lp lp # this prevent problems later&lt;BR /&gt;find lp -print | cpio -ocv &amp;gt; /var/tmp/samlp.cpio&lt;BR /&gt;&lt;BR /&gt;4) Copy /var/tmp/samlp.cpio from the old box to the new using rcp, sftp, ftp, ...&lt;BR /&gt;&lt;BR /&gt;5) On the new box:&lt;BR /&gt;cd /&lt;BR /&gt;lpshut&lt;BR /&gt;find ./etc/lp ./var/spool/lp -print | cpio -ocv &amp;gt; /var/tmp/lp.cpio #just in case&lt;BR /&gt;&lt;BR /&gt;6) cd /var/sp&lt;BR /&gt;cpio -icvdum &amp;lt; /var/tmp/samlp.cpio&lt;BR /&gt;/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/p&lt;BR /&gt;&lt;BR /&gt;7) lpsched&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Aug 2007 11:52:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/4052033#M304662</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-08-08T11:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Moving printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/4052034#M304663</link>
      <description>Almost same as Clay's:&lt;BR /&gt;&lt;BR /&gt;/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;tar -cvf lp.tar /var/sam/lp&lt;BR /&gt;&lt;BR /&gt;scp that to remote server&lt;BR /&gt;&lt;BR /&gt;on remote, lpshut&lt;BR /&gt;&lt;BR /&gt;tar xvf lp.tar&lt;BR /&gt;&lt;BR /&gt;/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp/&lt;BR /&gt;&lt;BR /&gt;lpsched -v&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note: this will work for Jet Direct printers - remote's are hit and miss and usually need to be re-created.&lt;BR /&gt;&lt;BR /&gt;Make sure you have HPPI on your rp3410.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Wed, 08 Aug 2007 13:20:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/4052034#M304663</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-08-08T13:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Moving printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/4052035#M304664</link>
      <description>Oops, I'm stupid. I noticed a few typing booboo's in my earlier post but spelling count in UNIX; here's the (hopefully) flawless procedure:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1) Get your hostname resolution working on the new box (/etc/hosts, NIS, NIS+, DNS, LDAP) as it does on the old so that printer hostnames can be resolved.&lt;BR /&gt;&lt;BR /&gt;2) Install the JetDirect software on the new box.&lt;BR /&gt;&lt;BR /&gt;3) On the old box:&lt;BR /&gt;lpshut&lt;BR /&gt;/usr/sam/lpbin/lpmgr -S -xsavedir=/var/sam/lp&lt;BR /&gt;cd /var/sam&lt;BR /&gt;chown -R lp:lp lp # this prevents problems later when we restore&lt;BR /&gt;find lp -print | cpio -ocv &amp;gt; /var/tmp/samlp.cpio&lt;BR /&gt;lpsched&lt;BR /&gt;&lt;BR /&gt;4) Copy /var/tmp/samlp.cpio from the old box to the new using rcp, sftp, ftp, ...&lt;BR /&gt;&lt;BR /&gt;5) On the new box:&lt;BR /&gt;cd /&lt;BR /&gt;lpshut&lt;BR /&gt;find ./etc/lp ./var/spool/lp -print | cpio -ocv &amp;gt; /var/tmp/lp.cpio # just in case&lt;BR /&gt;&lt;BR /&gt;6) cd /var/sam&lt;BR /&gt;cpio -icvdum &amp;lt; /var/tmp/samlp.cpio&lt;BR /&gt;/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp&lt;BR /&gt;&lt;BR /&gt;7) lpsched&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Aug 2007 17:16:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/4052035#M304664</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-08-08T17:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Moving printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/4052036#M304665</link>
      <description>Hi guys. Thanks for the pointers.&lt;BR /&gt;&lt;BR /&gt;The first time I did this following A. Clay's steps it didn't work. All of the model scripts in /vap/spool/lp/interface were missing. I checked all of my steps and I missed these.&lt;BR /&gt;&lt;BR /&gt;cd /var/sam&lt;BR /&gt;chown -R lp:lp lp&lt;BR /&gt;&lt;BR /&gt;I ran all the steps again and this time it worked! All of my jetdirect and remote printers are working.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Steve&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Aug 2007 14:53:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/4052036#M304665</guid>
      <dc:creator>Steve Start</dc:creator>
      <dc:date>2007-08-09T14:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Moving printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/4052037#M304666</link>
      <description>Yep, that's what happens. I haven't gone through all of the lpmgr script and especially the utilities that lpmgr in turn invokes. I suspect that when the interface files are being copied that the effective user is lp and the files are owned by root. If you are running a tight umask on the source machine, e.g. 027 (as you always should be) then the files can't be read. The chown -R lp:lp lp corrects that.</description>
      <pubDate>Thu, 09 Aug 2007 15:13:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/4052037#M304666</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-08-09T15:13:47Z</dc:date>
    </item>
  </channel>
</rss>

