<?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: consolidating printer queue definitions from multiple hosts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631414#M807940</link>
    <description>Hi Geoff,&lt;BR /&gt;&lt;BR /&gt;I installed the HP JetDirect PrintInstaller which was missing. Thanks for the tip.&lt;BR /&gt;&lt;BR /&gt;Then I ran the script.&lt;BR /&gt;&lt;BR /&gt;For every printer it showed these errors :&lt;BR /&gt;adding queue  printername1&lt;BR /&gt;printername1.mydomain.com: Unknown printer&lt;BR /&gt;Error sending SNMP request.&lt;BR /&gt;&lt;BR /&gt;I do see all printers in SAM.&lt;BR /&gt;&lt;BR /&gt;Can you tell me what the errors are about ?&lt;BR /&gt;Is the setup finished ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Franky</description>
    <pubDate>Fri, 23 Sep 2005 04:19:34 GMT</pubDate>
    <dc:creator>Franky Leeuwerck_2</dc:creator>
    <dc:date>2005-09-23T04:19:34Z</dc:date>
    <item>
      <title>consolidating printer queue definitions from multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631409#M807935</link>
      <description>Hi experts,&lt;BR /&gt;&lt;BR /&gt;I need to consolidate several dbms systems on HP-UX PA-Risc to a single HP-UX Itanium.&lt;BR /&gt;&lt;BR /&gt;Moving the printer queue definitions is one aspect of the migration.&lt;BR /&gt;&lt;BR /&gt;I used a script I found posted by Geoff Wild in this fora a while ago :&lt;BR /&gt;&lt;BR /&gt;============================&lt;BR /&gt;/usr/sam/lbin/lpmgr -S -v -xsavedir=/var/sam/lp/ &lt;BR /&gt;cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/&lt;BR /&gt;tar cvf /tmp/lp.tar /var/sam/lp/&lt;BR /&gt;ftp /tmp/lp.tar to remote server&lt;BR /&gt;Untar it, then:&lt;BR /&gt;lpshut&lt;BR /&gt;/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp/&lt;BR /&gt;lpsched -v&lt;BR /&gt;=================================&lt;BR /&gt;&lt;BR /&gt;It worked well, for the first system. I could see all printer definitions on the new machine correctly.&lt;BR /&gt;However,  I tried out the same procedure for the 2nd system. As a result the first set of definitions were overwritten.&lt;BR /&gt;&lt;BR /&gt;Then I tried to merge /lp/ subdirectories, created on the 3 systems with "lpmgr -S -v -x savedir=/var/sam/lp/ ", but also this resulted in only 1 subset on the new system.&lt;BR /&gt;&lt;BR /&gt;Any idea's ?&lt;BR /&gt;Something with the timestamp ?&lt;BR /&gt;&lt;BR /&gt;I have not done such work before, so this is new to me.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help.&lt;BR /&gt;&lt;BR /&gt;Franky&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Sep 2005 10:04:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631409#M807935</guid>
      <dc:creator>Franky Leeuwerck_2</dc:creator>
      <dc:date>2005-09-21T10:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: consolidating printer queue definitions from multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631410#M807936</link>
      <description>Franky,&lt;BR /&gt;&lt;BR /&gt;I don't think this is possible - with SAM - consolidate queues from multiple servers...&lt;BR /&gt;&lt;BR /&gt;I think you will be faced with the dubious task of adding them manualy....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That said, you should be able to script that - and add them all at once...&lt;BR /&gt;&lt;BR /&gt;I did something simliar moving from multiple AIX servers to a single HP-UX one:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# script to add-delete queues&lt;BR /&gt;# Geoff Wild&lt;BR /&gt;#&lt;BR /&gt;if [ $# -lt 1 -o ( $# -gt 1 -a $# -lt 4 ) ]&lt;BR /&gt;then&lt;BR /&gt;echo "Usage:"&lt;BR /&gt;echo "queue-admin "command""&lt;BR /&gt;echo "Example:"&lt;BR /&gt;echo "queue-admin addqueue"&lt;BR /&gt;echo "queue-admin removequeue"&lt;BR /&gt;exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if [ $1 = "addqueue" ] ; then&lt;BR /&gt;exec 0&lt;PRINTER.NAME.LIST.OUT&gt;&lt;/PRINTER.NAME.LIST.OUT&gt;while read line&lt;BR /&gt;do&lt;BR /&gt;p=`echo ${line}|awk '{print $1}'`&lt;BR /&gt;echo "adding queue " ${p}&lt;BR /&gt;# 9998 is net_genericprinter Modelscript&lt;BR /&gt;$1 -i 9998 -h ${p}.yourdomain.com -q ${p}&lt;BR /&gt;done&lt;BR /&gt;else&lt;BR /&gt;lpshut&lt;BR /&gt;exec 0&lt;PRINTER.NAME.LIST.OUT&gt;&lt;/PRINTER.NAME.LIST.OUT&gt;while read line&lt;BR /&gt;do&lt;BR /&gt;p=`echo ${line}|awk '{print $1}'`&lt;BR /&gt;echo "removing queue " ${p}&lt;BR /&gt;lpadmin -x${p}&lt;BR /&gt;done&lt;BR /&gt;lpsched&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;You need to create a file called printer.name.list.out (you can do that on all servers, then concatenate the file on the single server).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Sep 2005 11:02:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631410#M807936</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-09-21T11:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: consolidating printer queue definitions from multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631411#M807937</link>
      <description>Hi Geoff,&lt;BR /&gt;&lt;BR /&gt;Thanks for the input.&lt;BR /&gt;I created a file containing all the names of the printers from 3 different hosts :&lt;BR /&gt;printername1&lt;BR /&gt;printername2&lt;BR /&gt;.. etc ..&lt;BR /&gt;&lt;BR /&gt;I ran the "queue-admin addqueue" script.&lt;BR /&gt;For every printer I get the following error :&lt;BR /&gt;&lt;BR /&gt;adding queue  printername1&lt;BR /&gt;./queue-admin[20]: addqueue:  not found&lt;BR /&gt;&lt;BR /&gt;Line 20 is :&lt;BR /&gt;$1 -i 9998 -h ${p}.bekaertcorp.local -q ${p}&lt;BR /&gt;&lt;BR /&gt;Franky</description>
      <pubDate>Thu, 22 Sep 2005 10:27:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631411#M807937</guid>
      <dc:creator>Franky Leeuwerck_2</dc:creator>
      <dc:date>2005-09-22T10:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: consolidating printer queue definitions from multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631412#M807938</link>
      <description>Make sure /opt/hpnpl/bin/ is in your $PATH.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 22 Sep 2005 10:53:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631412#M807938</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-09-22T10:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: consolidating printer queue definitions from multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631413#M807939</link>
      <description>BTW - if that dir doesn't exist, then download and install " HP JD Printer Installer for HP-UX 11.x "&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hp.com/go/hppi_sw" target="_blank"&gt;http://www.hp.com/go/hppi_sw&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Sep 2005 10:56:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631413#M807939</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-09-22T10:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: consolidating printer queue definitions from multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631414#M807940</link>
      <description>Hi Geoff,&lt;BR /&gt;&lt;BR /&gt;I installed the HP JetDirect PrintInstaller which was missing. Thanks for the tip.&lt;BR /&gt;&lt;BR /&gt;Then I ran the script.&lt;BR /&gt;&lt;BR /&gt;For every printer it showed these errors :&lt;BR /&gt;adding queue  printername1&lt;BR /&gt;printername1.mydomain.com: Unknown printer&lt;BR /&gt;Error sending SNMP request.&lt;BR /&gt;&lt;BR /&gt;I do see all printers in SAM.&lt;BR /&gt;&lt;BR /&gt;Can you tell me what the errors are about ?&lt;BR /&gt;Is the setup finished ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Franky</description>
      <pubDate>Fri, 23 Sep 2005 04:19:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631414#M807940</guid>
      <dc:creator>Franky Leeuwerck_2</dc:creator>
      <dc:date>2005-09-23T04:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: consolidating printer queue definitions from multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631415#M807941</link>
      <description>Just checking the obvious, for  printername1.mydomain.com&lt;BR /&gt;&lt;BR /&gt;is it in DNS?  and I'm assuming you changed mydomain.com to your real domain?&lt;BR /&gt;&lt;BR /&gt;The printer will be added - but you have to make sure it is in DNS.&lt;BR /&gt;&lt;BR /&gt;No need to rerun the script - just update your DNS.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Fri, 23 Sep 2005 09:01:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631415#M807941</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-09-23T09:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: consolidating printer queue definitions from multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631416#M807942</link>
      <description>Hi Geoff,&lt;BR /&gt;&lt;BR /&gt;In real, I use the real printer names ..&lt;BR /&gt;&lt;BR /&gt;Further,&lt;BR /&gt;printername1.yourdomain.com is not in DNS,&lt;BR /&gt;but printername1 can be resolved, as also printername1.olddomain.com can be resolved.&lt;BR /&gt;&lt;BR /&gt;I know I used yourdomain.com in the script.&lt;BR /&gt;yourdomain.com is the domain for the host.&lt;BR /&gt;&lt;BR /&gt;With the hppi tool, I tested a printer and the printer was recognized as an HP printer and the server was allowed to address it.&lt;BR /&gt;&lt;BR /&gt;Can I conclude that this finishes the setup steps ?&lt;BR /&gt;&lt;BR /&gt;Franky</description>
      <pubDate>Fri, 23 Sep 2005 09:21:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631416#M807942</guid>
      <dc:creator>Franky Leeuwerck_2</dc:creator>
      <dc:date>2005-09-23T09:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: consolidating printer queue definitions from multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631417#M807943</link>
      <description>Okay, as long as you can ping it - then it should be fine.&lt;BR /&gt;&lt;BR /&gt;That said, you may have to delete all the queues and readd them - without using the fully qualified domain name...that is you said printername1 can be resolved but printername1.yourdomain.com can't...is that because the printers are in /etc/hosts?&lt;BR /&gt;&lt;BR /&gt;If so, you have 2 choices - modify /etc/hosts to include the domain name or redo the queues without the domain name...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here's a script I wrote to check printer status:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;#&lt;BR /&gt;# check printer status&lt;BR /&gt;# Geoff Wild&lt;BR /&gt;&lt;BR /&gt;if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]&lt;BR /&gt;then&lt;BR /&gt;  echo "Usage:"&lt;BR /&gt;  echo "lpst \"printer\""&lt;BR /&gt;  echo "Example:"&lt;BR /&gt;  echo "lpst W052"&lt;BR /&gt;  exit 1&lt;BR /&gt;fi&lt;BR /&gt;echo " "&lt;BR /&gt;/usr/sbin/ping $1 -n 2&lt;BR /&gt;echo " "&lt;BR /&gt;lpstat -p$1 -v$1&lt;BR /&gt;echo " "&lt;BR /&gt;echo "Output Requests"&lt;BR /&gt;echo "-----------------------------------------------------------"&lt;BR /&gt;lpstat -o$1&lt;BR /&gt;echo " "&lt;BR /&gt;lpstat -r&lt;BR /&gt;echo " "&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So, try it like:&lt;BR /&gt;&lt;BR /&gt;lpst printername1&lt;BR /&gt;&lt;BR /&gt;And one more command I use - /opt/hpnpl/bin/hpnpadmin&lt;BR /&gt;&lt;BR /&gt;Great for getting details on the printer...&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;# hpnpadmin -i W052&lt;BR /&gt;Printer Description:&lt;BR /&gt;--------------------&lt;BR /&gt;MFG                 :Hewlett-Packard;&lt;BR /&gt;CMD                 :PJL,MLC,PCL,POSTSCRIPT,PCLXL,PJL;&lt;BR /&gt;MDL                 :HP LaserJet 4100 Series ;&lt;BR /&gt;CLS                 :PRINTER;&lt;BR /&gt;DES                 :Hewlett-Packard LaserJet 4100 Series;&lt;BR /&gt;&lt;BR /&gt;Printer ID          : 271&lt;BR /&gt;&lt;BR /&gt;And with -v &lt;BR /&gt;hpnpadmin -v printername&lt;BR /&gt;will give you a bunch of info...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Sep 2005 09:39:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631417#M807943</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-09-23T09:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: consolidating printer queue definitions from multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631418#M807944</link>
      <description>Geoff,&lt;BR /&gt;&lt;BR /&gt;The printernames are not present in the /etc/hosts file.&lt;BR /&gt;So, I guess that's ok then.&lt;BR /&gt;&lt;BR /&gt;In attachment I added the output of your printer check statements.&lt;BR /&gt;&lt;BR /&gt;All look fine.&lt;BR /&gt;&lt;BR /&gt;Many thanks for your sharings in  this helpfull thread.&lt;BR /&gt;I'm sure others will benefit from it too.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Franky&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Sep 2005 10:10:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/consolidating-printer-queue-definitions-from-multiple-hosts/m-p/3631418#M807944</guid>
      <dc:creator>Franky Leeuwerck_2</dc:creator>
      <dc:date>2005-09-23T10:10:49Z</dc:date>
    </item>
  </channel>
</rss>

