<?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 How does HPPI determine printer model ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-hppi-determine-printer-model/m-p/4944575#M412429</link>
    <description>I am trying to write a script to simulate the functionality of hppi interface. I tried putting "set -x" lines all arund the scripts it utilized but I could not figure out what kind of script/command gets executed so that, hppi determines the printer type and decides (how ??) if we have the right model script for this printer in the repository or not.&lt;BR /&gt;&lt;BR /&gt;what I need is actually in the lines of this (semantically not code)&lt;BR /&gt;&lt;BR /&gt;read printer_ip_address&lt;BR /&gt;model=`poll printer_ip_address`&lt;BR /&gt;if model exists in available model scripts&lt;BR /&gt;then&lt;BR /&gt;install printer with available script&lt;BR /&gt;else&lt;BR /&gt;give an error message&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In this construct, I do not know how can I determine the model as a result of not knowing how to poll this ip address.&lt;BR /&gt;&lt;BR /&gt;Also once I have the correct printer model, how do I verify if I have the correct model script on my server or not ?&lt;BR /&gt;</description>
    <pubDate>Mon, 05 Dec 2005 18:27:58 GMT</pubDate>
    <dc:creator>exec22</dc:creator>
    <dc:date>2005-12-05T18:27:58Z</dc:date>
    <item>
      <title>How does HPPI determine printer model ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-hppi-determine-printer-model/m-p/4944575#M412429</link>
      <description>I am trying to write a script to simulate the functionality of hppi interface. I tried putting "set -x" lines all arund the scripts it utilized but I could not figure out what kind of script/command gets executed so that, hppi determines the printer type and decides (how ??) if we have the right model script for this printer in the repository or not.&lt;BR /&gt;&lt;BR /&gt;what I need is actually in the lines of this (semantically not code)&lt;BR /&gt;&lt;BR /&gt;read printer_ip_address&lt;BR /&gt;model=`poll printer_ip_address`&lt;BR /&gt;if model exists in available model scripts&lt;BR /&gt;then&lt;BR /&gt;install printer with available script&lt;BR /&gt;else&lt;BR /&gt;give an error message&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In this construct, I do not know how can I determine the model as a result of not knowing how to poll this ip address.&lt;BR /&gt;&lt;BR /&gt;Also once I have the correct printer model, how do I verify if I have the correct model script on my server or not ?&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Dec 2005 18:27:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-hppi-determine-printer-model/m-p/4944575#M412429</guid>
      <dc:creator>exec22</dc:creator>
      <dc:date>2005-12-05T18:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: How does HPPI determine printer model ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-hppi-determine-printer-model/m-p/4944576#M412430</link>
      <description>Look in the /opt/hpnpl/admin/getgoodpname script. I warn you it's ugly.</description>
      <pubDate>Mon, 05 Dec 2005 18:43:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-hppi-determine-printer-model/m-p/4944576#M412430</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-12-05T18:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: How does HPPI determine printer model ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-hppi-determine-printer-model/m-p/4944577#M412431</link>
      <description>hppi has a set of different scripts that perform the tasks. However, the 'best' printer script is a table--there is no direct method to take the dozens of printer models and pick the right model. Because the most recent models of printers are virtually the same, there is one general script that handles current models: net_ljx000. The choice of model script is not that critical. Only the very oldest printer (Laserjet I, II, III, IV) require a simpler script. The main reason is that prior to the LaserJet 4Si, these early printers did not understand PJL, the job control language which implements features like tray selection.&lt;BR /&gt; &lt;BR /&gt;If you need to create a command line interface to automate printer installation, it's already done: addqueue (and removequeue, modifyqueue) which can be found in /opt/hpnpl/bin. Check the man pages for addqueue for a non-interactive (and very fast) methid to add a JetDirect printer.</description>
      <pubDate>Mon, 05 Dec 2005 18:52:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-hppi-determine-printer-model/m-p/4944577#M412431</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-12-05T18:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: How does HPPI determine printer model ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-hppi-determine-printer-model/m-p/4944578#M412432</link>
      <description>You might do something like this to get the model.&lt;BR /&gt;&lt;BR /&gt;hpnpadmin -i printer_ip_address | grep -e MODEL -e MDL&lt;BR /&gt;&lt;BR /&gt;You'll have to figure out how you want to pull the model info from the MDL line (cut, awk, etc.). The text does not appear to be consistent. That would be too easy.&lt;BR /&gt;&lt;BR /&gt;The addqueue -l command will give you a table of printers and their related models that you can use to verify if you have a model script available. Or you could use it to build your own table. &lt;BR /&gt;&lt;BR /&gt;I just downloaded a script for a new printer we just installed. I used &lt;A href="http://www.hp.com/pond/modelscripts/index2.html." target="_blank"&gt;www.hp.com/pond/modelscripts/index2.html.&lt;/A&gt; These are mostly LaserJet scripts.&lt;BR /&gt;&lt;BR /&gt;Hope that helps,&lt;BR /&gt;Marlou</description>
      <pubDate>Thu, 08 Dec 2005 16:07:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-hppi-determine-printer-model/m-p/4944578#M412432</guid>
      <dc:creator>Marlou Everson</dc:creator>
      <dc:date>2005-12-08T16:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: How does HPPI determine printer model ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-hppi-determine-printer-model/m-p/4944579#M412433</link>
      <description>Hi Exec22 ,&lt;BR /&gt;&lt;BR /&gt;You can cheeck this for ,  supported printer models with their printer ID, and model_string , &lt;BR /&gt;&lt;BR /&gt;# cd /opt/hpnpl/bin&lt;BR /&gt;# addqueue -l&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also to add a printer, you can use:&lt;BR /&gt;# addqueue -i &lt;PRT_ID&gt; -q &lt;QUEUE_NAME&gt; -h &lt;HOST_NAME&gt;&lt;BR /&gt;( hostname to be include in /etc/hosts file )&lt;BR /&gt;&lt;BR /&gt;-----&lt;BR /&gt;usages: addqueue [-c class] [-d] [-i printerID]&lt;BR /&gt;                  -q queuename -h hostname [-p port] [-s]&lt;BR /&gt;                 [-r on/off] [-t on/off] [-b on/off] [-L PS/PCL/HPGL/HPGL2/AUTO]&lt;BR /&gt;                 [-P 1/2/3] [-T 1/2/3] [-m banner papersize] [-D on/off]&lt;BR /&gt;        addqueue -l&lt;BR /&gt;----------------------&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj .&lt;/HOST_NAME&gt;&lt;/QUEUE_NAME&gt;&lt;/PRT_ID&gt;</description>
      <pubDate>Thu, 08 Dec 2005 16:31:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-hppi-determine-printer-model/m-p/4944579#M412433</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-12-08T16:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: How does HPPI determine printer model ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-hppi-determine-printer-model/m-p/4944580#M412434</link>
      <description>Models are in:&lt;BR /&gt;&lt;BR /&gt;cat /opt/hpnpl/admin/PrinterList&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 08 Dec 2005 16:40:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-hppi-determine-printer-model/m-p/4944580#M412434</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-12-08T16:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: How does HPPI determine printer model ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-hppi-determine-printer-model/m-p/4944581#M412435</link>
      <description>Thanks for all the answers</description>
      <pubDate>Wed, 21 Dec 2005 17:28:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-hppi-determine-printer-model/m-p/4944581#M412435</guid>
      <dc:creator>exec22</dc:creator>
      <dc:date>2005-12-21T17:28:02Z</dc:date>
    </item>
  </channel>
</rss>

