<?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 Cups Question .... Again.... in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/cups-question-again/m-p/4179468#M32226</link>
    <description>I have to admit my ignorance about CUPS. (i bought the book though :-) and am RTFM.&lt;BR /&gt;&lt;BR /&gt;to make a long story short, we are currently running HP/UX but will be migrating to RHEL5..&lt;BR /&gt;&lt;BR /&gt;Kind of looking for a solution of sorts for converting from HP/UX "addqueue/hppi jetadmin" created queue to CUPS, and HOW you did it if you've done it. ?&lt;BR /&gt;&lt;BR /&gt;As I've been using jet admin to create physical queues, and&lt;BR /&gt;We have in the neighborhood of 300 physical jetadmin queues and each queue have 4-6 corresponding logical queues for "options" Options of primary are as follows:&lt;BR /&gt;&lt;BR /&gt;Portrait "-ovsi7.27"&lt;BR /&gt;Portrait Compressed = "-oc -vsi7.27"&lt;BR /&gt;Landscape = "-olandscape"&lt;BR /&gt;landscape Compressed " olandscape -oc -ovsi5.45"&lt;BR /&gt;&lt;BR /&gt;(Where VSI=vertical space per inch)&lt;BR /&gt;&lt;BR /&gt;obviously other options as well.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I need to make changes to 1200+ entries to command entry into several database, I do have a length constraint that the command can only be 60 characters in length.&lt;BR /&gt;&lt;BR /&gt;Does someone have a HOWTO or FAQ on how to define such a scenario. &lt;BR /&gt;&lt;BR /&gt;ie (command lines for printing options via cups.) &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The man pages do not have very good "examples" that would be beneficial..&lt;BR /&gt;&lt;BR /&gt;as it stand the current informix database entry on HP/UX looks as follows:&lt;BR /&gt;BuildingID, Quename, PR_COMMAND,&lt;BR /&gt;1,ADM hp 1320 PORT, lp -d arladmhp1320 -ovsi7.27,&lt;BR /&gt;1,ADM hp 1320 PORTCOMP,lp -d arladmhp1320 -ovsi7.27 -oc,&lt;BR /&gt;1,ADM hp 1320 LAND,lp -d arladmhp1320 -ovsi5.45 -olandscape,&lt;BR /&gt;1,ADM hp 1320 LANDCOMP,lp -d arladmhp1320 -ovsi5.45 -oc -olandscape,&lt;BR /&gt;&lt;BR /&gt;any ideas, pointers (not just RTFM) or suggestions would be appreciated.</description>
    <pubDate>Mon, 14 Apr 2008 12:54:31 GMT</pubDate>
    <dc:creator>rmueller58</dc:creator>
    <dc:date>2008-04-14T12:54:31Z</dc:date>
    <item>
      <title>Cups Question .... Again....</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cups-question-again/m-p/4179468#M32226</link>
      <description>I have to admit my ignorance about CUPS. (i bought the book though :-) and am RTFM.&lt;BR /&gt;&lt;BR /&gt;to make a long story short, we are currently running HP/UX but will be migrating to RHEL5..&lt;BR /&gt;&lt;BR /&gt;Kind of looking for a solution of sorts for converting from HP/UX "addqueue/hppi jetadmin" created queue to CUPS, and HOW you did it if you've done it. ?&lt;BR /&gt;&lt;BR /&gt;As I've been using jet admin to create physical queues, and&lt;BR /&gt;We have in the neighborhood of 300 physical jetadmin queues and each queue have 4-6 corresponding logical queues for "options" Options of primary are as follows:&lt;BR /&gt;&lt;BR /&gt;Portrait "-ovsi7.27"&lt;BR /&gt;Portrait Compressed = "-oc -vsi7.27"&lt;BR /&gt;Landscape = "-olandscape"&lt;BR /&gt;landscape Compressed " olandscape -oc -ovsi5.45"&lt;BR /&gt;&lt;BR /&gt;(Where VSI=vertical space per inch)&lt;BR /&gt;&lt;BR /&gt;obviously other options as well.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I need to make changes to 1200+ entries to command entry into several database, I do have a length constraint that the command can only be 60 characters in length.&lt;BR /&gt;&lt;BR /&gt;Does someone have a HOWTO or FAQ on how to define such a scenario. &lt;BR /&gt;&lt;BR /&gt;ie (command lines for printing options via cups.) &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The man pages do not have very good "examples" that would be beneficial..&lt;BR /&gt;&lt;BR /&gt;as it stand the current informix database entry on HP/UX looks as follows:&lt;BR /&gt;BuildingID, Quename, PR_COMMAND,&lt;BR /&gt;1,ADM hp 1320 PORT, lp -d arladmhp1320 -ovsi7.27,&lt;BR /&gt;1,ADM hp 1320 PORTCOMP,lp -d arladmhp1320 -ovsi7.27 -oc,&lt;BR /&gt;1,ADM hp 1320 LAND,lp -d arladmhp1320 -ovsi5.45 -olandscape,&lt;BR /&gt;1,ADM hp 1320 LANDCOMP,lp -d arladmhp1320 -ovsi5.45 -oc -olandscape,&lt;BR /&gt;&lt;BR /&gt;any ideas, pointers (not just RTFM) or suggestions would be appreciated.</description>
      <pubDate>Mon, 14 Apr 2008 12:54:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cups-question-again/m-p/4179468#M32226</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2008-04-14T12:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cups Question .... Again....</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cups-question-again/m-p/4179469#M32227</link>
      <description>Try to contact to Rick Garland here in the forum, check this link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1208181947375+28353475&amp;amp;threadId=859530" target="_blank"&gt;http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1208181947375+28353475&amp;amp;threadId=859530&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;"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;</description>
      <pubDate>Mon, 14 Apr 2008 13:08:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cups-question-again/m-p/4179469#M32227</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-04-14T13:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cups Question .... Again....</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cups-question-again/m-p/4179470#M32228</link>
      <description>Thank Ivan, &lt;BR /&gt;&lt;BR /&gt;Hopefully Rick will see the thread. His statement says a lot. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Apr 2008 14:12:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cups-question-again/m-p/4179470#M32228</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2008-04-14T14:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cups Question .... Again....</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cups-question-again/m-p/4179471#M32229</link>
      <description>I have cobbed together some code from a post on rick's thread and have come up with a script that builds the printer.conf to convert from HP/UX queues to CUPS...&lt;BR /&gt;&lt;BR /&gt;I am curious as to how CUPS connects the items in the printers.conf to reference what particular PPD or model script is uses for printing?&lt;BR /&gt;&lt;BR /&gt;The script builds the printer file, I still appear to have an issue because it does not know what model script/ppd to use to filter through.&lt;BR /&gt;&lt;BR /&gt;Any insight appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;##############################################&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;for qname in `/usr/local/bin/lpm |awk -F: '{print $1}' `&lt;BR /&gt; do&lt;BR /&gt; echo $qname&lt;BR /&gt;         for ipaddr in `grep PERIPH= /var/spool/lp/interface/$qname |grep -v MOD&lt;BR /&gt;EL |awk -F'=' '{print $2}' `&lt;BR /&gt;                do&lt;BR /&gt;                        echo $qname $ipaddr&lt;BR /&gt; done&lt;BR /&gt;done&lt;BR /&gt;&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 socket://$ipaddr:9100&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;/OUTPUT&gt;</description>
      <pubDate>Tue, 22 Apr 2008 12:45:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cups-question-again/m-p/4179471#M32229</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2008-04-22T12:45:20Z</dc:date>
    </item>
  </channel>
</rss>

