<?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 Information in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-information/m-p/3651766#M240545</link>
    <description>I was able to run a script to ping against all of the printers.  A majority of the printers are network printers.  I know some network printers are valid and yet they are not pingable.  Some are pingable.&lt;BR /&gt;&lt;BR /&gt;Could it be maybe a firewall or something that is preventing me from pinging?</description>
    <pubDate>Tue, 18 Oct 2005 12:51:40 GMT</pubDate>
    <dc:creator>Regina Mitchell</dc:creator>
    <dc:date>2005-10-18T12:51:40Z</dc:date>
    <item>
      <title>Printer Information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-information/m-p/3651763#M240542</link>
      <description>I have a N4000, OS 11i.  I am asked the following information.&lt;BR /&gt;1. Provide a list of printers that are currently defined on this server that either:&lt;BR /&gt; a) are no longer valid;&lt;BR /&gt; b) are offline;&lt;BR /&gt; c) cannot be pinged.&lt;BR /&gt;&lt;BR /&gt;I'm not experienced at scripting.  Is there an easy way to get this information.  I had planned to use lpstat -p and use all the printers that are disabled to satisfy this request.  Any other ideas?&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Oct 2005 09:02:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-information/m-p/3651763#M240542</guid>
      <dc:creator>Regina Mitchell</dc:creator>
      <dc:date>2005-10-18T09:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-information/m-p/3651764#M240543</link>
      <description>Here's a script I use - called lpst&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;#&lt;BR /&gt;# check printer status&lt;BR /&gt;# Geoff Wild&lt;BR /&gt;&lt;BR /&gt;if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]&lt;BR /&gt;then&lt;BR /&gt;echo "Usage:"&lt;BR /&gt;echo "lpst \"printer\""&lt;BR /&gt;echo "Example:"&lt;BR /&gt;echo "lpst W052"&lt;BR /&gt;exit 1&lt;BR /&gt;fi&lt;BR /&gt;echo " "&lt;BR /&gt;/usr/sbin/ping $1 -n 2&lt;BR /&gt;echo " "&lt;BR /&gt;lpstat -p$1 -v$1&lt;BR /&gt;echo " "&lt;BR /&gt;echo "Output Requests"&lt;BR /&gt;echo "-----------------------------------------------------------"&lt;BR /&gt;lpstat -o$1&lt;BR /&gt;echo " "&lt;BR /&gt;lpstat -r&lt;BR /&gt;echo " "&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;lpst W052&lt;BR /&gt;&lt;BR /&gt;PING myprinter.mydomain.com: 64 byte packets&lt;BR /&gt;64 bytes from 192.168.2.101: icmp_seq=0. time=7. ms&lt;BR /&gt;64 bytes from 192.168.2.101: icmp_seq=1. time=7. ms&lt;BR /&gt;&lt;BR /&gt;----myprinter.mydomain.com PING Statistics----&lt;BR /&gt;2 packets transmitted, 2 packets received, 0% packet loss&lt;BR /&gt;round-trip (ms) min/avg/max = 7/7/7&lt;BR /&gt;&lt;BR /&gt;printer W052 is idle. enabled since May 14 10:00&lt;BR /&gt;fence priority : 0&lt;BR /&gt;device for W052: /dev/null&lt;BR /&gt;&lt;BR /&gt;Output Requests&lt;BR /&gt;-----------------------------------------------------------&lt;BR /&gt;no entries&lt;BR /&gt;&lt;BR /&gt;scheduler is running&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To tell if it is offline:&lt;BR /&gt;&lt;BR /&gt;hpnpadmin -v PRINTQUEUENAME&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 18 Oct 2005 12:16:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-information/m-p/3651764#M240543</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-10-18T12:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-information/m-p/3651765#M240544</link>
      <description>Here's a simple ping test I use to test all our JetAdmin printers.&lt;BR /&gt;&lt;BR /&gt;==============================================================&lt;BR /&gt;lpstat -p | grep -v priority | awk '{print $2}' | while read PRINTER&lt;BR /&gt;do&lt;BR /&gt;IP=`cat /etc/lp/interface/$PRINTER | grep PERIPH= | awk -F = '{print $2}' | grep -v MODEL`&lt;BR /&gt;ping $IP -n 1 &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt; if [ $? = 0 ]&lt;BR /&gt;  then echo "I can ping $PRINTER"&lt;BR /&gt;   else echo "I cannot ping $PRINTER"&lt;BR /&gt; fi&lt;BR /&gt;done&lt;BR /&gt;==============================================================</description>
      <pubDate>Tue, 18 Oct 2005 12:44:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-information/m-p/3651765#M240544</guid>
      <dc:creator>Andy Torres</dc:creator>
      <dc:date>2005-10-18T12:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-information/m-p/3651766#M240545</link>
      <description>I was able to run a script to ping against all of the printers.  A majority of the printers are network printers.  I know some network printers are valid and yet they are not pingable.  Some are pingable.&lt;BR /&gt;&lt;BR /&gt;Could it be maybe a firewall or something that is preventing me from pinging?</description>
      <pubDate>Tue, 18 Oct 2005 12:51:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-information/m-p/3651766#M240545</guid>
      <dc:creator>Regina Mitchell</dc:creator>
      <dc:date>2005-10-18T12:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-information/m-p/3651767#M240546</link>
      <description>If you know a printer should be good but still can't ping it, compare it to other printers you can't get to and see if they are on the same or different subnet.&lt;BR /&gt;&lt;BR /&gt;If they're on the same subnet then I'd suspect a connectivity problem with those particular printers.&lt;BR /&gt;&lt;BR /&gt;If they all seem to be on the same subnet, I'd start looking for either a routing issue or something missing from network configuration.</description>
      <pubDate>Tue, 18 Oct 2005 13:44:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-information/m-p/3651767#M240546</guid>
      <dc:creator>Andy Torres</dc:creator>
      <dc:date>2005-10-18T13:44:18Z</dc:date>
    </item>
  </channel>
</rss>

