<?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: network printer in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135433#M451218</link>
    <description>A bit of advice about printers -- don't use hostnames. In most data centers, keeping printer hostnames up to date on the DNS server is never a priority. Add your printers with IP addresses. If those printer IPs keep changing, you've got bigger problems with your network administrators.&lt;BR /&gt; &lt;BR /&gt;lpstat provides no information about the destination printer, only status for the local print queues.&lt;BR /&gt; &lt;BR /&gt;There are two very different ways to connect a printer and unfortunately, lpstat won't tell you the difference. One method is where the printer is served by some other computer (a PC, Linux, non-HP LAN card) and this is called a remote printer. A remote printer has no -o options making it quite awkward to use.&lt;BR /&gt; &lt;BR /&gt;The other printer (mentioned above) is a network printer (SAM's wording) and connects directly to HP-UX. All the "network" printers are listed in the /etc/lp/interface/model.orig directory. If model.orig does not exist, all your printers are "remote" (or connected with cables). With "network" printers (virtually all will be HP) you can use hpnpadmin -v IP.address to find details.&lt;BR /&gt; &lt;BR /&gt;In either case, there is a print queue name which is what you use with the lp command. Whether the printer was added with a hostname or IP address is irrelevant.</description>
    <pubDate>Mon, 13 Oct 2008 23:02:19 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2008-10-13T23:02:19Z</dc:date>
    <item>
      <title>network printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135430#M451215</link>
      <description>Hi gurus,&lt;BR /&gt;&lt;BR /&gt;I have a few questions regarding network print queue on hpux11.23.&lt;BR /&gt;&lt;BR /&gt;1. using "lpstat -t"  I get:&lt;BR /&gt;&lt;BR /&gt;device for fjet2_1: /dev/null&lt;BR /&gt;fjet2_1 accepting requests since Jan  8 09:08&lt;BR /&gt;&lt;BR /&gt;printer fjet2_1 is idle.  enabled since Jan  8 09:08&lt;BR /&gt;        fence priority : 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;but when I ping or nslookup the printer name this is what I get and also we can't print to the printer:&lt;BR /&gt;&lt;BR /&gt;# nslookup fjet2_1&lt;BR /&gt;Using /etc/hosts on:  simpk400&lt;BR /&gt;&lt;BR /&gt;looking up FILES&lt;BR /&gt;Trying DNS&lt;BR /&gt;*** sadc1.stec-inc.ad can't find fjet2_1: Non-existent domain&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is it correct to assume that this printer is configured but not on the network?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. I don't quite understand how the print queue and printer name work for example:&lt;BR /&gt;&lt;BR /&gt;#lpstat -t &lt;BR /&gt;device for jet11_1: /dev/null&lt;BR /&gt;jet11_1 accepting requests since Jan  8 09:08&lt;BR /&gt;printer jet11_1 is idle.  enabled since Jan  8 09:08&lt;BR /&gt;&lt;BR /&gt;but the printer name is:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;looking up FILES&lt;BR /&gt;Name:    jet11&lt;BR /&gt;Address:  172.17.4.50&lt;BR /&gt;&lt;BR /&gt;and not:&lt;BR /&gt;&lt;BR /&gt;# nslookup jet11_1&lt;BR /&gt;Using /etc/hosts on:  simpk400&lt;BR /&gt;&lt;BR /&gt;looking up FILES&lt;BR /&gt;Trying DNS&lt;BR /&gt;*** sadc1.stec-inc.ad can't find jet11_1: Non-existent domain&lt;BR /&gt;&lt;BR /&gt;Please explain.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you in advance for any assistance.&lt;BR /&gt;&lt;BR /&gt;Kathy&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Oct 2008 20:30:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135430#M451215</guid>
      <dc:creator>KathyK</dc:creator>
      <dc:date>2008-10-13T20:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: network printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135431#M451216</link>
      <description>The queue name and the IP/Hostname of the printer have absolutely nothing in common unless you chose to name them exactly the same.&lt;BR /&gt;&lt;BR /&gt;Network based printers ( those with some type of jetdirect or equivelant ) IP information is found in the interface file for the printer.&lt;BR /&gt;&lt;BR /&gt;So in this case:&lt;BR /&gt;grep PERIPH= /etc/lp/interface/jet11_1&lt;BR /&gt;&lt;BR /&gt;PERIPH with either be set to an IP address or a hostname found in /etc/hosts.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Oct 2008 20:41:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135431#M451216</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2008-10-13T20:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: network printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135432#M451217</link>
      <description>Thank you Tim.</description>
      <pubDate>Mon, 13 Oct 2008 20:58:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135432#M451217</guid>
      <dc:creator>KathyK</dc:creator>
      <dc:date>2008-10-13T20:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: network printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135433#M451218</link>
      <description>A bit of advice about printers -- don't use hostnames. In most data centers, keeping printer hostnames up to date on the DNS server is never a priority. Add your printers with IP addresses. If those printer IPs keep changing, you've got bigger problems with your network administrators.&lt;BR /&gt; &lt;BR /&gt;lpstat provides no information about the destination printer, only status for the local print queues.&lt;BR /&gt; &lt;BR /&gt;There are two very different ways to connect a printer and unfortunately, lpstat won't tell you the difference. One method is where the printer is served by some other computer (a PC, Linux, non-HP LAN card) and this is called a remote printer. A remote printer has no -o options making it quite awkward to use.&lt;BR /&gt; &lt;BR /&gt;The other printer (mentioned above) is a network printer (SAM's wording) and connects directly to HP-UX. All the "network" printers are listed in the /etc/lp/interface/model.orig directory. If model.orig does not exist, all your printers are "remote" (or connected with cables). With "network" printers (virtually all will be HP) you can use hpnpadmin -v IP.address to find details.&lt;BR /&gt; &lt;BR /&gt;In either case, there is a print queue name which is what you use with the lp command. Whether the printer was added with a hostname or IP address is irrelevant.</description>
      <pubDate>Mon, 13 Oct 2008 23:02:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135433#M451218</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-10-13T23:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: network printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135434#M451219</link>
      <description>Bill,&lt;BR /&gt;&lt;BR /&gt;thank you great pointers. unfortunatly all the printers are in fact network and been added using names. allot of them i'm told are no longer in service or the ip has changed and my project is to cleanup the spooler on this system.</description>
      <pubDate>Mon, 13 Oct 2008 23:05:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135434#M451219</guid>
      <dc:creator>KathyK</dc:creator>
      <dc:date>2008-10-13T23:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: network printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135435#M451220</link>
      <description>Great. Network printers are very easy to delete/add using the addqueue and removequeue command. Start by using the reject command on all the printers you know are not working or unused. You can work on them if any users complain. Don't use disable as this allows the printers to collect jobs whereas reject prevents the job from being submitted (immediate feedback). After a few weeks, just use lpadmin -x to remove them.&lt;BR /&gt; &lt;BR /&gt;Make sure /opt/hpnpl/bin is in your PATH. Then use hpnpadmin &lt;PRINTER-HOSTNAME&gt; to see if a particular printer responds. ping is not always a reliable test depending on how your network is managed. For the rest of the printers, I would delete and re-add each one of them. The reason is that they may not have been added with the right printer script. hpnpadmin -v will tell you everything about the printer and you can download the correct script from: &lt;A href="http://www.hp.com/pond/modelscripts/index2.html" target="_blank"&gt;http://www.hp.com/pond/modelscripts/index2.html&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;Then, use removequeue -q prn_queue followed by:&lt;BR /&gt; &lt;BR /&gt;addqueue -h 12.34.56.78 -q prn_queue -t off -b off -r off&lt;BR /&gt; &lt;BR /&gt;You can batch all these addqueue's together and remove/add them at one time with the spooler stopped. Each remove/add will take 2-5 seconds. And now you'll have only the working printers with the latest printer scripts.&lt;/PRINTER-HOSTNAME&gt;</description>
      <pubDate>Tue, 14 Oct 2008 00:24:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135435#M451220</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-10-14T00:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: network printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135436#M451221</link>
      <description>&amp;gt;my project is to cleanup the spooler on this system.&lt;BR /&gt;&lt;BR /&gt;Just the one or all systems?  Do you use NIS?&lt;BR /&gt;We use a NIS map for printers so all systems can be made the same:&lt;BR /&gt;$ ypcat -k printers&lt;BR /&gt;colorlj1 adlprt01&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;And have a simple script that deletes all printers and adds only those back.</description>
      <pubDate>Tue, 14 Oct 2008 00:38:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135436#M451221</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-14T00:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: network printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135437#M451222</link>
      <description>Bill/Dennis,&lt;BR /&gt;thank you both.&lt;BR /&gt;&lt;BR /&gt;the printers are on one system. i don't think we are using nis for them. but any script would help. &lt;BR /&gt;&lt;BR /&gt;best regards,&lt;BR /&gt;kathy</description>
      <pubDate>Tue, 14 Oct 2008 15:16:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135437#M451222</guid>
      <dc:creator>KathyK</dc:creator>
      <dc:date>2008-10-14T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: network printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135438#M451223</link>
      <description>&lt;!--!*#--&gt;&amp;gt;But any script would help. &lt;BR /&gt;&lt;BR /&gt;What you need is a table of IP and printer names.  Once you have that, it should be a simple matter to execute Bill's addqueue on each entry.&lt;BR /&gt;while read PRINTER IP JUNK; do&lt;BR /&gt;   removequeue -q $PRINTER # remove old&lt;BR /&gt;   addqueue -h $IP -q $PRINTER -t off -b off -r off&lt;BR /&gt;done &amp;lt; printer_table</description>
      <pubDate>Wed, 15 Oct 2008 04:28:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135438#M451223</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-15T04:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: network printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135439#M451224</link>
      <description>Thank you, for your help. I'm closing this thread.</description>
      <pubDate>Wed, 15 Oct 2008 15:21:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135439#M451224</guid>
      <dc:creator>KathyK</dc:creator>
      <dc:date>2008-10-15T15:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: network printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135440#M451225</link>
      <description>closed</description>
      <pubDate>Wed, 15 Oct 2008 19:45:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/network-printer/m-p/5135440#M451225</guid>
      <dc:creator>KathyK</dc:creator>
      <dc:date>2008-10-15T19:45:52Z</dc:date>
    </item>
  </channel>
</rss>

