<?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 to write a ping program to ping arp table ip in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-write-a-ping-program-to-ping-arp-table-ip/m-p/4683529#M532982</link>
    <description>I would like to ping ip in arp table cache,&lt;BR /&gt;but i don't know how to write a ping program to detect arp table ip host is alive, does any one know how to scan ip from(arp table cache) via ping program ,could any one give me an example ,thanks</description>
    <pubDate>Mon, 06 Sep 2010 08:00:01 GMT</pubDate>
    <dc:creator>eric wang_2</dc:creator>
    <dc:date>2010-09-06T08:00:01Z</dc:date>
    <item>
      <title>how to write a ping program to ping arp table ip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-write-a-ping-program-to-ping-arp-table-ip/m-p/4683529#M532982</link>
      <description>I would like to ping ip in arp table cache,&lt;BR /&gt;but i don't know how to write a ping program to detect arp table ip host is alive, does any one know how to scan ip from(arp table cache) via ping program ,could any one give me an example ,thanks</description>
      <pubDate>Mon, 06 Sep 2010 08:00:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-write-a-ping-program-to-ping-arp-table-ip/m-p/4683529#M532982</guid>
      <dc:creator>eric wang_2</dc:creator>
      <dc:date>2010-09-06T08:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to write a ping program to ping arp table ip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-write-a-ping-program-to-ping-arp-table-ip/m-p/4683530#M532983</link>
      <description>eric,&lt;BR /&gt;&lt;BR /&gt;how about something like this (tested on 11.31 - pings each address in the arp cache 3 times)&lt;BR /&gt;&lt;BR /&gt;arp -an | cut -d'(' -f 2 | cut -d')' -f 1 | while read ip&lt;BR /&gt;do&lt;BR /&gt;ping ${ip} -n 3 &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;[ $? -ne 0 ] &amp;amp;&amp;amp; echo "Couldn't reach ${ip}"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 06 Sep 2010 08:11:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-write-a-ping-program-to-ping-arp-table-ip/m-p/4683530#M532983</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2010-09-06T08:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to write a ping program to ping arp table ip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-write-a-ping-program-to-ping-arp-table-ip/m-p/4683531#M532984</link>
      <description>thanks for your reply, i  would like to know if ping successful or not ,and when i run that program which shows nothing,&lt;BR /&gt;my HP-UX is B.11.31, and i am sure it has two arp record in arp table,and ping those ip which will response.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I would like to know if I need to write a c++ program to sure which ping status.&lt;BR /&gt;&lt;BR /&gt;because i need to use program to check if host is live by that ip.&lt;BR /&gt;&lt;BR /&gt;could any one tell me how to solve this IP Scan question.&lt;BR /&gt;Because i found i could use ECHO_REPLAY message to chech if ping is successful&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Sep 2010 09:51:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-write-a-ping-program-to-ping-arp-table-ip/m-p/4683531#M532984</guid>
      <dc:creator>eric wang_2</dc:creator>
      <dc:date>2010-09-06T09:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to write a ping program to ping arp table ip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-write-a-ping-program-to-ping-arp-table-ip/m-p/4683532#M532985</link>
      <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;indeed, if you want to write a ping program by hand, you need to open a AF_INET,SOCK_RAW socket, then pseudo- connect() to the target address,&lt;BR /&gt;send a ICMP_ECHO, and wait for ICMP_ECHO_REPLY.&lt;BR /&gt;&lt;BR /&gt;or timeout with select()&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Sep 2010 10:09:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-write-a-ping-program-to-ping-arp-table-ip/m-p/4683532#M532985</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-09-06T10:09:28Z</dc:date>
    </item>
  </channel>
</rss>

