<?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: jetadmin query in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/jetadmin-query/m-p/3872977#M278699</link>
    <description>You can determine the printer port and server/ip address from the /var/spool/lp/interface file. I'd do something like the following:&lt;BR /&gt;&lt;BR /&gt;for file in $(ls /var/spool/lp/interface); do&lt;BR /&gt;[ ! -f $file ] &amp;amp;&amp;amp; continue&lt;BR /&gt;echo $file&lt;BR /&gt;egrep 'xPORT=|PERIPH=[^\$]' $file | sed -e 's/^/  /'&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;xPORT is the port number (9100 is the default) and PERIPH is the host name/IP address. It will list the output as:&lt;BR /&gt;&lt;BR /&gt;queue_name&lt;BR /&gt;  xPORT=9101&lt;BR /&gt;  PERIPH=printer_name&lt;BR /&gt;&lt;BR /&gt;HTH</description>
    <pubDate>Mon, 02 Oct 2006 08:32:57 GMT</pubDate>
    <dc:creator>Jonathan Fife</dc:creator>
    <dc:date>2006-10-02T08:32:57Z</dc:date>
    <item>
      <title>jetadmin query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jetadmin-query/m-p/3872975#M278697</link>
      <description>Exciting as it is I need to understand how I can gather my current printer configuration from Jetadmin. Basically we are migrating to another platform which is Solaris. We will not be using jetadmin so I simply need to extarct printer queues and hardware from my current configuration. Does anyone know how I do this. I would imaging its possible. I don't want to have to do this one by one!!</description>
      <pubDate>Mon, 02 Oct 2006 05:48:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jetadmin-query/m-p/3872975#M278697</guid>
      <dc:creator>Adam Noble</dc:creator>
      <dc:date>2006-10-02T05:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: jetadmin query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jetadmin-query/m-p/3872976#M278698</link>
      <description>jetadmin is the name for a very obsolete product that was replaced with hppi back in 1999. Now it may be confusing that JetDirect is the product family of HP LAN cards for printers. So unless you are running a very obsolete version of HP-UX, you should be running hppi software (found in /opt/hpnpl -- jetadmin is found in /opt/hpnp).&lt;BR /&gt; &lt;BR /&gt;The good news is that the same software (hppi) is available for Solaris and the better news is that you can easily create an automated script to add all the printers with no interaction. NOTE: you don't want to add the printers to Solaris as print servers (ie, lpd/lpr style) as you will have limited functionality, especially with -o options.&lt;BR /&gt; &lt;BR /&gt;To capture all the JetDirect printers and create an add-printer script, do this:&lt;BR /&gt; &lt;BR /&gt;cd /etc/lp/interface&lt;BR /&gt;for PRN in $(grep -l ^PERIPH *)&lt;BR /&gt;do&lt;BR /&gt;IP=$(grep ^PERIPH $PRN)&lt;BR /&gt;echo "addqueue -h $IP -q $PRN" &amp;gt;&amp;gt; /var/tmp/addprinters&lt;BR /&gt;done&lt;BR /&gt; &lt;BR /&gt;Then move the script over to the Solaris machine. Install HPPI software from:&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?" target="_blank"&gt;http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?&lt;/A&gt;〈=en&amp;amp;cc=us&amp;amp;pnameOID=18924&amp;amp;taskId=135&amp;amp;prodTypeId=18972&amp;amp;prodSeriesId=27351〈=en&amp;amp;cc=us&lt;BR /&gt; &lt;BR /&gt;Then make the script executable and run it. That will create all the print queues. NOTE: IP addresses are usually more portable, especially for printers. The problem is with DNS admins -- they sometimes forget to add or maintain printer IPs. If neeed, change all the -h options in the addprinters file to IP addresses. There's no need for printer hostnames in the spool system (HP-UX or Solaris).</description>
      <pubDate>Mon, 02 Oct 2006 08:32:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jetadmin-query/m-p/3872976#M278698</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-10-02T08:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: jetadmin query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jetadmin-query/m-p/3872977#M278699</link>
      <description>You can determine the printer port and server/ip address from the /var/spool/lp/interface file. I'd do something like the following:&lt;BR /&gt;&lt;BR /&gt;for file in $(ls /var/spool/lp/interface); do&lt;BR /&gt;[ ! -f $file ] &amp;amp;&amp;amp; continue&lt;BR /&gt;echo $file&lt;BR /&gt;egrep 'xPORT=|PERIPH=[^\$]' $file | sed -e 's/^/  /'&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;xPORT is the port number (9100 is the default) and PERIPH is the host name/IP address. It will list the output as:&lt;BR /&gt;&lt;BR /&gt;queue_name&lt;BR /&gt;  xPORT=9101&lt;BR /&gt;  PERIPH=printer_name&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Mon, 02 Oct 2006 08:32:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jetadmin-query/m-p/3872977#M278699</guid>
      <dc:creator>Jonathan Fife</dc:creator>
      <dc:date>2006-10-02T08:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: jetadmin query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jetadmin-query/m-p/3872978#M278700</link>
      <description>You could download Jetdirect for Solaris - should make the migration less painful:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&amp;amp;cc=us&amp;amp;prodNameId=18924&amp;amp;prodTypeId=18972&amp;amp;prodSeriesId=27351&amp;amp;swLang=8&amp;amp;taskId=135&amp;amp;swEnvOID=1088" target="_blank"&gt;http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&amp;amp;cc=us&amp;amp;prodNameId=18924&amp;amp;prodTypeId=18972&amp;amp;prodSeriesId=27351&amp;amp;swLang=8&amp;amp;taskId=135&amp;amp;swEnvOID=1088&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Mon, 02 Oct 2006 08:40:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jetadmin-query/m-p/3872978#M278700</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-10-02T08:40:34Z</dc:date>
    </item>
  </channel>
</rss>

