is host exist

This is a discussion on is host exist within the Linux Networking forums, part of the Linux Forums category; How can i test if host exist, when host doesn't response for ping ? -- pozdr.;) ~xEM...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-08-2004
xEM
 
Posts: n/a
Default is host exist

How can i test if host exist, when host doesn't response for ping ?

--
pozdr.;)
~xEM
Reply With Quote
  #2 (permalink)  
Old 02-08-2004
Horror Vacui
 
Posts: n/a
Default Re: is host exist

On Sun, 08 Feb 2004 12:07:48 +0000, xEM wrote:

> How can i test if host exist, when host doesn't response for ping ?


If you know what services are running on it (you can scan it with nmap),
you can "ping" a specific port using hping (or rather hping2)

Cheers
Horror Vacui
Reply With Quote
  #3 (permalink)  
Old 02-09-2004
xEM
 
Posts: n/a
Default Re: is host exist

On 2004-02-08, Horror Vacui <vacuihorror@gmx.net> wrote:
>
> If you know what services are running on it (you can scan it with nmap),
> you can "ping" a specific port using hping (or rather hping2)
>
> Cheers
> Horror Vacui


Yes, that's working :)
So.. when i don't know services... ?

--
pozdr.;)
~xEM
Reply With Quote
  #4 (permalink)  
Old 02-09-2004
Kurt
 
Posts: n/a
Default Re: is host exist


"xEM" <me@o2.pl> wrote in message news:slrnc2c9kn.23p.me@192.168.1.5...
> How can i test if host exist, when host doesn't response for ping ?
>


See if an ARP entry appears for it in /proc/arp


Of course some other machine might answer for it. (how likely is that ? )



Reply With Quote
  #5 (permalink)  
Old 02-09-2004
Cameron Kerr
 
Posts: n/a
Default Re: is host exist

Kurt <kurt@noemail.com> wrote:
> "xEM" <me@o2.pl> wrote in message news:slrnc2c9kn.23p.me@192.168.1.5...


>> How can i test if host exist, when host doesn't response for ping ?


> See if an ARP entry appears for it in /proc/arp


> Of course some other machine might answer for it. (how likely is that ? )


A bigger problem is when the machine is in a different subnet. Then you
won't see any ARP requests for that particular machine.

--
Cameron Kerr
cameron.kerr@paradise.net.nz : http://nzgeeks.org/cameron/
Empowered by Perl!
Reply With Quote
  #6 (permalink)  
Old 02-09-2004
Cameron Kerr
 
Posts: n/a
Default Re: is host exist

xEM <me@o2.pl> wrote:
> How can i test if host exist, when host doesn't response for ping ?


If you mean the ping is timing out, then the presence of the timeout
should tell you that the host is not responding (or is dropping your
ping packets).

Using a UDP ping may be useful also.

Otherwise, your kinda screwed (unless the host is in the some subnet, in
which case you can solicit an ARP request (ping -c1 IP &))

--
Cameron Kerr
cameron.kerr@paradise.net.nz : http://nzgeeks.org/cameron/
Empowered by Perl!
Reply With Quote
  #7 (permalink)  
Old 02-09-2004
tibo
 
Posts: n/a
Default Re: is host exist


"xEM" <me@o2.pl> a écrit dans le message de
news:slrnc2dhd1.ib.me@192.168.1.5...
> On 2004-02-08, Horror Vacui <vacuihorror@gmx.net> wrote:


>
> Yes, that's working :)
> So.. when i don't know services... ?
>
> --
> pozdr.;)
> ~xEM


With nmap, you can scan the open ports :

nmap -sT adress



Reply With Quote
  #8 (permalink)  
Old 02-10-2004
Owen Jacobson
 
Posts: n/a
Default Re: is host exist

On Mon, 09 Feb 2004 11:00:19 +0000, tibo wrote:

> nmap -sT adress


ITYM 'nmap -sT -P0 host.name.or.ip' -- nmap normally tries to ping the
host first.

--
Some say the Wired doesn't have political borders like the real world,
but there are far too many nonsense-spouting anarchists or idiots who
think that pranks are a revolution.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:46 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0