<?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: migrate printers to RH under CUPS config in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/migrate-printers-to-rh-under-cups-config/m-p/4896701#M403343</link>
    <description>I did a large implementation of CUPS a while back and found that CUPS provides no migration tool from lp. &lt;BR /&gt;&lt;BR /&gt;I had to write a script that did an lpstat -a and extracted the printer names into lpadmin. When adding printers though, CUPS' lpadmin requires the ppd file as an argument. Each printer has a different PPD file (if you require the printer specific options). You can only script this if you have a way to map the printername to the physical characteristics of the printer, such as a printer inventory.&lt;BR /&gt;I was only able to do this because we keep a printer inventory with the printer name, model, location, etc. I was easily able to map a PPD file to each type of printer (we also had a limited number of printer types).&lt;BR /&gt;&lt;BR /&gt;This could also be done if you have an intelligent printer naming convention IE: For us, hpljxxx is an HP with jetdirect. To which CUPS prints to port 9100 as opposed to 631 (IPP).&lt;BR /&gt;&lt;BR /&gt;-paul</description>
    <pubDate>Wed, 20 Apr 2005 10:15:05 GMT</pubDate>
    <dc:creator>Paul Cross_1</dc:creator>
    <dc:date>2005-04-20T10:15:05Z</dc:date>
    <item>
      <title>migrate printers to RH under CUPS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/migrate-printers-to-rh-under-cups-config/m-p/4896698#M403340</link>
      <description>All:&lt;BR /&gt;&lt;BR /&gt;We have a HPUX 11.x print server right now. All if working OK.&lt;BR /&gt;&lt;BR /&gt;We will be having a project to setup a RH Linux system as the print server. The Linux will be running CUPS as well.&lt;BR /&gt;&lt;BR /&gt;How to migrate the printers from HPUX to Linux/CUPS? I can get printer names from the HPUX, but where to put them in Linux/CUPS?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 18 Apr 2005 17:11:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/migrate-printers-to-rh-under-cups-config/m-p/4896698#M403340</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-04-18T17:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: migrate printers to RH under CUPS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/migrate-printers-to-rh-under-cups-config/m-p/4896699#M403341</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Pls have a look at the follwoing files:&lt;BR /&gt;Under /etc/cups&lt;BR /&gt;1.cupsd.conf&lt;BR /&gt;2.printers.conf &lt;BR /&gt;3.clinet.conf&lt;BR /&gt;&lt;BR /&gt;Hope this info is useful&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Apr 2005 06:16:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/migrate-printers-to-rh-under-cups-config/m-p/4896699#M403341</guid>
      <dc:creator>Vipulinux</dc:creator>
      <dc:date>2005-04-20T06:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: migrate printers to RH under CUPS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/migrate-printers-to-rh-under-cups-config/m-p/4896700#M403342</link>
      <description>If you're familiar with SysV printer administration you can still use lpadmin with the same set of options and arguments.&lt;BR /&gt;CUPS offers the same set of lp* commands for administration and printer/job handling.&lt;BR /&gt; &lt;BR /&gt;I even think it comes with BSD like implementations.&lt;BR /&gt; &lt;BR /&gt;However, probably the easiest way to do single task would be using a Webbrowser and connect to Port 631 over IPP.&lt;BR /&gt;There must be toolsets for all sorts of scripting languages for IPP that are more suited for bulk operations.&lt;BR /&gt; &lt;BR /&gt;Maybe you could start here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cups.org/doc-1.1/sam.html#MANAGING_PRINTERS" target="_blank"&gt;http://www.cups.org/doc-1.1/sam.html#MANAGING_PRINTERS&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Apr 2005 09:30:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/migrate-printers-to-rh-under-cups-config/m-p/4896700#M403342</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-04-20T09:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: migrate printers to RH under CUPS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/migrate-printers-to-rh-under-cups-config/m-p/4896701#M403343</link>
      <description>I did a large implementation of CUPS a while back and found that CUPS provides no migration tool from lp. &lt;BR /&gt;&lt;BR /&gt;I had to write a script that did an lpstat -a and extracted the printer names into lpadmin. When adding printers though, CUPS' lpadmin requires the ppd file as an argument. Each printer has a different PPD file (if you require the printer specific options). You can only script this if you have a way to map the printername to the physical characteristics of the printer, such as a printer inventory.&lt;BR /&gt;I was only able to do this because we keep a printer inventory with the printer name, model, location, etc. I was easily able to map a PPD file to each type of printer (we also had a limited number of printer types).&lt;BR /&gt;&lt;BR /&gt;This could also be done if you have an intelligent printer naming convention IE: For us, hpljxxx is an HP with jetdirect. To which CUPS prints to port 9100 as opposed to 631 (IPP).&lt;BR /&gt;&lt;BR /&gt;-paul</description>
      <pubDate>Wed, 20 Apr 2005 10:15:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/migrate-printers-to-rh-under-cups-config/m-p/4896701#M403343</guid>
      <dc:creator>Paul Cross_1</dc:creator>
      <dc:date>2005-04-20T10:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: migrate printers to RH under CUPS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/migrate-printers-to-rh-under-cups-config/m-p/4896702#M403344</link>
      <description>Try this on the HPUX 11.x server:&lt;BR /&gt;&lt;BR /&gt;Ex: hp2cups printers.conf&lt;BR /&gt;&lt;BR /&gt;##############################################&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;outfile=$1&lt;BR /&gt;if [ -z "$outfile" ]&lt;BR /&gt;then&lt;BR /&gt;  echo "USAGE: hp2cups &lt;OUTPUT file=""&gt;"&lt;BR /&gt;  exit 1&lt;BR /&gt;else&lt;BR /&gt;  &amp;gt; $outfile&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;/usr/sam/lbin/lpmgr | while read printnfo&lt;BR /&gt;do&lt;BR /&gt;  isremote=`echo $printnfo \&lt;BR /&gt;    | cut -d":" -f3 \&lt;BR /&gt;    | cut -d"," -f1`&lt;BR /&gt;  if [ "$isremote" = "yes" ]&lt;BR /&gt;  then&lt;BR /&gt;    name=`echo $printnfo | cut -d":" -f1`&lt;BR /&gt;    remote=`echo $printnfo \&lt;BR /&gt;      | cut -d":" -f5 \&lt;BR /&gt;      | awk '{print $3}'`&lt;BR /&gt;    cat &amp;gt;&amp;gt; $outfile &amp;lt;&amp;lt; EOF&lt;BR /&gt;&lt;PRINTER&gt;&lt;BR /&gt;Info Created by $USER&lt;BR /&gt;DeviceURI lpd://$remote/text&lt;BR /&gt;Location&lt;BR /&gt;State Idle&lt;BR /&gt;Accepting Yes&lt;BR /&gt;JobSheets none none&lt;BR /&gt;QuotaPeriod 0&lt;BR /&gt;PageLimit 0&lt;BR /&gt;KLimit 0&lt;BR /&gt;&lt;/PRINTER&gt;&lt;BR /&gt;EOF&lt;BR /&gt;  fi&lt;BR /&gt;done&lt;BR /&gt;#########################################&lt;BR /&gt;&lt;BR /&gt;Substitute DeviceURI with the appropriate protocol info (this should work for ldp).&lt;BR /&gt;Replace /etc/cups/printers.conf on the linux server with the file created by this script and restart cupsd.&lt;/OUTPUT&gt;</description>
      <pubDate>Wed, 20 Apr 2005 10:33:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/migrate-printers-to-rh-under-cups-config/m-p/4896702#M403344</guid>
      <dc:creator>Joe Harrison_1</dc:creator>
      <dc:date>2005-04-20T10:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: migrate printers to RH under CUPS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/migrate-printers-to-rh-under-cups-config/m-p/4896703#M403345</link>
      <description>I admit it is not the most straightforward of migration but a word to the CUPS developers - have a import/migration path available.&lt;BR /&gt;&lt;BR /&gt;Thanks all</description>
      <pubDate>Wed, 20 Apr 2005 10:42:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/migrate-printers-to-rh-under-cups-config/m-p/4896703#M403345</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-04-20T10:42:03Z</dc:date>
    </item>
  </channel>
</rss>

