<?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: Printer IP address in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344038#M191306</link>
    <description>The PERIPH variable should be in the /etc/lp/interface/&lt;PRINTER_NAME&gt; file or /usr/spool/lp/interface/&lt;PRINTER_NAME&gt; file which contains the IP address.&lt;BR /&gt;&lt;BR /&gt;Try this again?&lt;BR /&gt;# cd /usr/spool/lp/interface/&lt;BR /&gt;# grep PERIPH &lt;PRINTER_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;What output do you get?&lt;/PRINTER_NAME&gt;&lt;/PRINTER_NAME&gt;&lt;/PRINTER_NAME&gt;</description>
    <pubDate>Thu, 29 Jul 2004 01:04:48 GMT</pubDate>
    <dc:creator>Mei Jiao</dc:creator>
    <dc:date>2004-07-29T01:04:48Z</dc:date>
    <item>
      <title>Printer IP address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344035#M191303</link>
      <description>I have many printers installed on a HP/UX 11 machine that are referenced by name. They are setup locally in the LP Spooler as network printers. They all work, however I need to know their IP addresses. There is not a PERIPH variable in their respective /etc/lp/interface/printer_name files.&lt;BR /&gt;Any ideas where the IP Addresses can be found ?</description>
      <pubDate>Wed, 28 Jul 2004 23:36:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344035#M191303</guid>
      <dc:creator>Michael Treacy</dc:creator>
      <dc:date>2004-07-28T23:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Printer IP address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344036#M191304</link>
      <description>Try this:&lt;BR /&gt;# nslookup &lt;PRINTER_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;If you have configured DNS and /etc/nsswitch.conf file also has 'dns' on the 'hosts' entry, your DNS should be able to resolve the IP address.&lt;/PRINTER_NAME&gt;</description>
      <pubDate>Thu, 29 Jul 2004 00:03:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344036#M191304</guid>
      <dc:creator>Mei Jiao</dc:creator>
      <dc:date>2004-07-29T00:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Printer IP address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344037#M191305</link>
      <description>nslookup can't resolve the name.&lt;BR /&gt;They aren't in the HOSTS file.&lt;BR /&gt;The printer names are defined locally and wouldn't be found on other servers.</description>
      <pubDate>Thu, 29 Jul 2004 00:12:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344037#M191305</guid>
      <dc:creator>Michael Treacy</dc:creator>
      <dc:date>2004-07-29T00:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Printer IP address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344038#M191306</link>
      <description>The PERIPH variable should be in the /etc/lp/interface/&lt;PRINTER_NAME&gt; file or /usr/spool/lp/interface/&lt;PRINTER_NAME&gt; file which contains the IP address.&lt;BR /&gt;&lt;BR /&gt;Try this again?&lt;BR /&gt;# cd /usr/spool/lp/interface/&lt;BR /&gt;# grep PERIPH &lt;PRINTER_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;What output do you get?&lt;/PRINTER_NAME&gt;&lt;/PRINTER_NAME&gt;&lt;/PRINTER_NAME&gt;</description>
      <pubDate>Thu, 29 Jul 2004 01:04:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344038#M191306</guid>
      <dc:creator>Mei Jiao</dc:creator>
      <dc:date>2004-07-29T01:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Printer IP address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344039#M191307</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;same directory as hppi&lt;BR /&gt;&lt;BR /&gt;hpnpadmin -v printername&lt;BR /&gt;&lt;BR /&gt;gives a verbose description including the IP&lt;BR /&gt;&lt;BR /&gt; hpnpadmin -v bprn122&lt;BR /&gt;bprn122 is a network printer&lt;BR /&gt;&lt;BR /&gt;Printer State       : ready to print&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;topaz is allowed access to bprn122&lt;BR /&gt;&lt;BR /&gt;Fail (1)&lt;BR /&gt;&lt;BR /&gt;Card IP Address     : bprn122.bel.hp.com (16.56.163.9)&lt;BR /&gt;Network Mask        : 255.255.248.0&lt;BR /&gt;Default Gateway     : ??? (16.56.160.1)&lt;BR /&gt;Idle Timeout        : 270 seconds&lt;BR /&gt;&lt;BR /&gt;Uptime              : 15 days, 20:29:32&lt;BR /&gt;Time Since Reconfig : 15 days, 20:29:16&lt;BR /&gt;  Reconfig By       : not specified&lt;BR /&gt;Connections Accepted: 697&lt;BR /&gt;Connections Denied  : 0 (not on access list)&lt;BR /&gt;Connections Aborted : 1&lt;BR /&gt;  Last Host         : broprn-n2.bro.cpqcorp.net (16.183.16.49)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;     Steve Steel</description>
      <pubDate>Thu, 29 Jul 2004 02:06:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344039#M191307</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-07-29T02:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Printer IP address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344040#M191308</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Just making a ping at the printer name:&lt;BR /&gt;#ping &lt;PRINTER_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;Generally, for specific application use; printers are defined in /etc/hosts file. While for global the are defined in a DNS machine. The best way to determine this possibility is using the command nslookup:&lt;BR /&gt;#nslookup &lt;PRINTER_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;The output will indicate you if the /etc/hosts file or DNS is used.&lt;BR /&gt;&lt;BR /&gt;Rgds.&lt;/PRINTER_NAME&gt;&lt;/PRINTER_NAME&gt;</description>
      <pubDate>Thu, 29 Jul 2004 02:26:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344040#M191308</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2004-07-29T02:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Printer IP address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344041#M191309</link>
      <description>Change hosts: entry in /etc/nsswitch.conf file as,&lt;BR /&gt; &lt;BR /&gt; hosts: DNS FILES &lt;BR /&gt; &lt;BR /&gt; Check is there a nameserver and domain entry in /etc/resolve.conf,&lt;BR /&gt;&lt;BR /&gt; domain test.com&lt;BR /&gt; nameserver x.x.x.x&lt;BR /&gt; &lt;BR /&gt; nslookup printer-name&lt;BR /&gt; It will give all informations of hostname,ip-address and aliases&lt;BR /&gt;&lt;BR /&gt; All hostname to address resolvation will be based on hosts: entry on /etc/nsswitch.conf file.</description>
      <pubDate>Thu, 29 Jul 2004 02:38:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344041#M191309</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-07-29T02:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Printer IP address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344042#M191310</link>
      <description>I've tried on 'hpnpadmin -v &lt;NODE_NAME&gt;' command. Fresh to me, it produces a lot of information.&lt;BR /&gt;&lt;BR /&gt;But I think it still need the &lt;NODE_NAME&gt; or you can put the &lt;IP_ADDRESS&gt; for the command.&lt;BR /&gt;&lt;BR /&gt;Maybe you try this again?&lt;BR /&gt;# cd /usr/spool/lp/interface/&lt;BR /&gt;# grep PERIPH &lt;PRINTER_NAME&gt;&lt;/PRINTER_NAME&gt;&lt;/IP_ADDRESS&gt;&lt;/NODE_NAME&gt;&lt;/NODE_NAME&gt;</description>
      <pubDate>Thu, 29 Jul 2004 05:17:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344042#M191310</guid>
      <dc:creator>Mei Jiao</dc:creator>
      <dc:date>2004-07-29T05:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Printer IP address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344043#M191311</link>
      <description>hpnpadmin -v XXXX |grep Address&lt;BR /&gt;&lt;BR /&gt;where XXXX is the printer name.&lt;BR /&gt;&lt;BR /&gt;If you want all:&lt;BR /&gt;&lt;BR /&gt;for i in `ls /etc/lp/interface | grep -v model.orig `&lt;BR /&gt;do&lt;BR /&gt;echo $i&lt;BR /&gt;hpnpadmin -v $i |grep Address&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jul 2004 07:55:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344043#M191311</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-07-29T07:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Printer IP address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344044#M191312</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Try&lt;BR /&gt;&lt;BR /&gt;1.lpstat -v|grep null|cut -f 3 -d" "|sort -u|while read line&lt;BR /&gt;2. do&lt;BR /&gt;3. line1=$(echo $line|sed -e 's/_.*$//g')&lt;BR /&gt;4. echo $line1":"$(nslookup $line1 2&amp;gt;/dev/null)|grep answer&lt;BR /&gt;5. done&lt;BR /&gt;&lt;BR /&gt;lpstat -v lists printers&lt;BR /&gt;&lt;BR /&gt;/dev/null is normally network&lt;BR /&gt;&lt;BR /&gt;remove _  to get real name&lt;BR /&gt;&lt;BR /&gt;Wont work if name not based on internet name&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      Steve Steel</description>
      <pubDate>Thu, 29 Jul 2004 08:12:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344044#M191312</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-07-29T08:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Printer IP address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344045#M191313</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Try this&lt;BR /&gt;&lt;BR /&gt;     1  ls -1 /etc/lp/interface/model.orig|while read line&lt;BR /&gt;     2  do&lt;BR /&gt;     3    if  ishpnp $line&lt;BR /&gt;     4    then&lt;BR /&gt;     5      echo $line is a network printer&lt;BR /&gt;     6      nslookup $line 2&amp;gt;/dev/null|grep Address&lt;BR /&gt;     7      line1=$(echo $line|sed -e 's/_.*$//')&lt;BR /&gt;     8      nslookup $line1 2&amp;gt;/dev/null|grep Address&lt;BR /&gt;     9    else&lt;BR /&gt;    10      echo " "&lt;BR /&gt;    11    fi&lt;BR /&gt;    12  done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;          steve Steel</description>
      <pubDate>Thu, 29 Jul 2004 08:38:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344045#M191313</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-07-29T08:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Printer IP address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344046#M191314</link>
      <description>Thanks for all the ideas...&lt;BR /&gt;&lt;BR /&gt;The hpnpadmin commands give SNMP errors like this:&lt;BR /&gt; hpnpadmin -v mmfin05&lt;BR /&gt;mmfin05: Unknown printer&lt;BR /&gt;: Error sending SNMP request.&lt;BR /&gt;*** Can't find the session! &lt;BR /&gt;&lt;BR /&gt;nslookup gives &lt;BR /&gt;device for mmfin05: /dev/null&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jul 2004 09:08:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344046#M191314</guid>
      <dc:creator>Michael Treacy</dc:creator>
      <dc:date>2004-07-29T09:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Printer IP address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344047#M191315</link>
      <description>As a last resort, the ip also prints on the test page from each printer.</description>
      <pubDate>Thu, 29 Jul 2004 09:11:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344047#M191315</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2004-07-29T09:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Printer IP address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344048#M191316</link>
      <description>I tried again this morning... &lt;BR /&gt;And the PERIPH variable is found in the /etc/lp/interface/priner_name files.&lt;BR /&gt;&lt;BR /&gt;Thanks to ALL !&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jul 2004 09:19:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344048#M191316</guid>
      <dc:creator>Michael Treacy</dc:creator>
      <dc:date>2004-07-29T09:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Printer IP address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344049#M191317</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;This is the simplest of scripts.5 lines&lt;BR /&gt;&lt;BR /&gt;1. find . -type f|xargs grep  ^PERIPH=|while read line&lt;BR /&gt;2. do&lt;BR /&gt;3. name=$(echo $line|cut -f2 -d"=")&lt;BR /&gt;4. echo $line"|"$(nslookup $name 2&amp;gt;/dev/null|grep Address)&lt;BR /&gt;5. done&lt;BR /&gt;&lt;BR /&gt;It will check for network setup printers and give the IP if known&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         Steve Steel</description>
      <pubDate>Thu, 29 Jul 2004 09:21:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344049#M191317</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-07-29T09:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Printer IP address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344050#M191318</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;This is the simplest of scripts.5 lines&lt;BR /&gt;&lt;BR /&gt;run it on directory /etc/lp/interface&lt;BR /&gt;&lt;BR /&gt;1. find . -type f|xargs grep  ^PERIPH=|while read line&lt;BR /&gt;2. do&lt;BR /&gt;3. name=$(echo $line|cut -f2 -d"=")&lt;BR /&gt;4. echo $line"|"$(nslookup $name 2&amp;gt;/dev/null|grep Address)&lt;BR /&gt;5. done&lt;BR /&gt;&lt;BR /&gt;It will check for network setup printers and give the IP if known&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         Steve Steel</description>
      <pubDate>Thu, 29 Jul 2004 09:22:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344050#M191318</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-07-29T09:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Printer IP address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344051#M191319</link>
      <description>Thanks Steve..&lt;BR /&gt;&lt;BR /&gt;That is exactly what I needed....&lt;BR /&gt;I very much appreciate your ideas and scripts.</description>
      <pubDate>Thu, 29 Jul 2004 09:31:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-ip-address/m-p/3344051#M191319</guid>
      <dc:creator>Michael Treacy</dc:creator>
      <dc:date>2004-07-29T09:31:58Z</dc:date>
    </item>
  </channel>
</rss>

