<?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/2764115#M73154</link>
    <description>Here is a script that I use. I create the print queue on the "$FR_HOST" server that usually has no printing activity going on.&lt;BR /&gt;Then I run this script that will watch for an idle moment and make the change with minimal effect on the ongoing printing that "lpshut/lpsched" causes.&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;FR_HOST=source_host&lt;BR /&gt;PR=$1&lt;BR /&gt;MM=$(date +%b)&lt;BR /&gt;DD=$(date +%d | sed 's/^0//')&lt;BR /&gt;while [ $(lpstat -o -i | grep -E "$MM[ ]+$DD[ ]+.*on" | wc -l) -gt 0 ]&lt;BR /&gt;do&lt;BR /&gt;echo ".\c"&lt;BR /&gt;sleep 5&lt;BR /&gt;done&lt;BR /&gt;echo ""&lt;BR /&gt;if [ $(hostname) != ${FR_HOST} ];then&lt;BR /&gt;rcp ${FR_HOST}:/etc/lp/interface/${PR} /usr/spool/lp/model/${PR}&lt;BR /&gt;rcp ${FR_HOST}:/etc/lp/interface/model.orig/${PR} /etc/lp/interface/model.orig/${PR}&lt;BR /&gt;if [ $? -ne 0 ];then&lt;BR /&gt;    echo "model script for ${PR} not available"&lt;BR /&gt;    echo "rcp from ${FR_HOST}:/usr/spool/lp/model/${PR} FAILED"&lt;BR /&gt;    exit 1&lt;BR /&gt;fi&lt;BR /&gt;fi&lt;BR /&gt;lpshut&lt;BR /&gt;lpadmin -x${PR}&lt;BR /&gt;lpadmin -p${PR} -m${PR} -v/dev/null&lt;BR /&gt;lpsched -a&lt;BR /&gt;accept ${PR}&lt;BR /&gt;enable ${PR}&lt;BR /&gt;rm /usr/spool/lp/model/${PR}&lt;BR /&gt;exit</description>
    <pubDate>Mon, 15 Jul 2002 19:16:32 GMT</pubDate>
    <dc:creator>Rich Wright</dc:creator>
    <dc:date>2002-07-15T19:16:32Z</dc:date>
    <item>
      <title>Moving Printers...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/2764110#M73149</link>
      <description>Does anyone know if it is possible to "copy" printers between several servers?  We have an environment where we need the SAME printers on 5 servers.  Instead of using HPPI to create the printers on each of the servers is there a way to just copy the files between??  If do you know the listing of ALL the files that need to be moved..&lt;BR /&gt;&lt;BR /&gt;I am hoping this will save me some typing and some repetitive work...&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ty</description>
      <pubDate>Mon, 15 Jul 2002 18:08:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/2764110#M73149</guid>
      <dc:creator>Ty Roberts</dc:creator>
      <dc:date>2002-07-15T18:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Printers...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/2764111#M73150</link>
      <description>There are a couple of ways to do this. Do a search in this forum for "restore spooler". There are several posts that give the details.</description>
      <pubDate>Mon, 15 Jul 2002 18:25:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/2764111#M73150</guid>
      <dc:creator>Dave Chamberlin</dc:creator>
      <dc:date>2002-07-15T18:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Printers...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/2764112#M73151</link>
      <description>Hi Ty&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;you may like to look at this document :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support2.itrc.hp.com/service/cki/docDisplay.do?docId=200000058668757" target="_blank"&gt;http://support2.itrc.hp.com/service/cki/docDisplay.do?docId=200000058668757&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Mon, 15 Jul 2002 18:27:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/2764112#M73151</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-07-15T18:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Printers...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/2764113#M73152</link>
      <description>There are 2 methods:&lt;BR /&gt;&lt;BR /&gt;1) Use SAM-&amp;gt;Printers &amp;amp; Plotters -&amp;gt; LP Spooler -&amp;gt; Save/Restore Spooler Configuration -&amp;gt; Actions -&amp;gt; Save (or Restore)&lt;BR /&gt;&lt;BR /&gt;You then copy the files under var/sam/lp to the other hosts and run the Restore.&lt;BR /&gt;&lt;BR /&gt;2) &lt;BR /&gt;Copy /etc/lp/*, /var/spool/lp/* (and make sure that the proper symbolic links are maintained /usr/spool -&amp;gt; /var/spool. MAKE CERTAIN that ownership and group are maintained.&lt;BR /&gt;&lt;BR /&gt;2B) You could use rdist to keep these files in sync.&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jul 2002 18:28:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/2764113#M73152</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-07-15T18:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Printers...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/2764114#M73153</link>
      <description>There is a command called "transferqueue", it will transfer all the queue to other Server.&lt;BR /&gt;For details look at&lt;BR /&gt;#man transferqueue&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Mon, 15 Jul 2002 18:28:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/2764114#M73153</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2002-07-15T18:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Printers...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/2764115#M73154</link>
      <description>Here is a script that I use. I create the print queue on the "$FR_HOST" server that usually has no printing activity going on.&lt;BR /&gt;Then I run this script that will watch for an idle moment and make the change with minimal effect on the ongoing printing that "lpshut/lpsched" causes.&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;FR_HOST=source_host&lt;BR /&gt;PR=$1&lt;BR /&gt;MM=$(date +%b)&lt;BR /&gt;DD=$(date +%d | sed 's/^0//')&lt;BR /&gt;while [ $(lpstat -o -i | grep -E "$MM[ ]+$DD[ ]+.*on" | wc -l) -gt 0 ]&lt;BR /&gt;do&lt;BR /&gt;echo ".\c"&lt;BR /&gt;sleep 5&lt;BR /&gt;done&lt;BR /&gt;echo ""&lt;BR /&gt;if [ $(hostname) != ${FR_HOST} ];then&lt;BR /&gt;rcp ${FR_HOST}:/etc/lp/interface/${PR} /usr/spool/lp/model/${PR}&lt;BR /&gt;rcp ${FR_HOST}:/etc/lp/interface/model.orig/${PR} /etc/lp/interface/model.orig/${PR}&lt;BR /&gt;if [ $? -ne 0 ];then&lt;BR /&gt;    echo "model script for ${PR} not available"&lt;BR /&gt;    echo "rcp from ${FR_HOST}:/usr/spool/lp/model/${PR} FAILED"&lt;BR /&gt;    exit 1&lt;BR /&gt;fi&lt;BR /&gt;fi&lt;BR /&gt;lpshut&lt;BR /&gt;lpadmin -x${PR}&lt;BR /&gt;lpadmin -p${PR} -m${PR} -v/dev/null&lt;BR /&gt;lpsched -a&lt;BR /&gt;accept ${PR}&lt;BR /&gt;enable ${PR}&lt;BR /&gt;rm /usr/spool/lp/model/${PR}&lt;BR /&gt;exit</description>
      <pubDate>Mon, 15 Jul 2002 19:16:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/2764115#M73154</guid>
      <dc:creator>Rich Wright</dc:creator>
      <dc:date>2002-07-15T19:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Printers...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/2764116#M73155</link>
      <description>As mentioned, transferqueue is a good way to copy the queues. You can also use addqueue in a script since addqueue only needs 2 parameters: hostanme/IP and queue-name. The run the script on each machine. addqueue is by far the easiest way to add a JetDirect printer.</description>
      <pubDate>Tue, 16 Jul 2002 00:08:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-printers/m-p/2764116#M73155</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-07-16T00:08:02Z</dc:date>
    </item>
  </channel>
</rss>

