Singh, This is how I would do this though it is probably not the easiest nor the best. First it depends on what language your doing this in. In perl I could see it being possible to use a loop, incrementing the ip addressing and pinging the host to see if it is alive. Then if it is alive add it to an array if it isn't dont. If you are in C I would imagine the best idea would be to create a similiar loop sending a ping packet (I would use the libnet library to do this, but that is just because I am lazy) and using libpcap to analyze the reply echo_host_reply or host_unreachable. Then do what ever you want to with this. Thats how I would do this hopefully it helps some.
John Fastabend [EMAIL PROTECTED] On Mon, 9 Dec 2002, YashPal Singh wrote: > Thanks a lot for so much info. But i m sorry i missed something. I have to > do it programmatically. Tools are very good. but i have to include it in my > code. So should i rely on my DNS zone files, arp caches or broadcast > ping..or is there something better where i have less chances of error. > Sorry and thanks a lot again. > Yash > > -----Original Message----- > From: Sarbjit Singh Gill [mailto:[EMAIL PROTECTED]] > Sent: Saturday, December 07, 2002 8:43 AM > To: 'YashPal Singh' > Subject: RE: how to search all machines on a network. > > > I would recommend this too.. > > -----Original Message----- > From: Matt Schaelling [mailto:[EMAIL PROTECTED]] > Sent: Saturday, December 07, 2002 2:41 AM > To: 'YashPal Singh'; '[EMAIL PROTECTED]' > Cc: '[EMAIL PROTECTED]' > Subject: RE: how to search all machines on a network. > > > Languard Network Scanner from www.gfi.com > > -----Original Message----- > From: YashPal Singh [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 06, 2002 5:23 AM > To: '[EMAIL PROTECTED]' > Cc: '[EMAIL PROTECTED]' > Subject: how to search all machines on a network. > > > Hi All, > > How we can search all the alive machines on the network. Say my network is > 10.60.0.0 to 10.60.255.255. So what are the different ways(pros and cons) to > search all the machines. > > Thanks in advance, > Yash >
