Re: polling an intranet for a device type

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Peter,

Many thanks for your response.

We have some new products that are network visible and can have any IP
address available. They respond to Pings, and by compatibility I mean that
they will interpret and respond to specific query's with predefined answers

I need to be able to detect those devices by means of sending either a
single global (network) command and store the IP Addresses of the devices
that respond in the predefined manner, eg. I ask "Are you my new device" and
the response is "Yes I am" (very simplistic).
Alternatively I could query each individual IP address and monitor the
response from that IP Address. If I were to ping each address I would
effectively be doubling the query time as PC's and other network devices,
e.g. printers etc, would also respond to a ping and would then require
additional querying again to determine the device type. Our devices are
programmed to respond to various commands in a predefined way, eg I send a
'?' and the device responds with a firmware version.

Is that a bit more substantial.

TIA

Tony
"Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx> wrote in message
news:op.uoi6yucx8jd0ej@xxxxxxxxxxxxxxxxxxxx
On Thu, 29 Jan 2009 01:13:48 -0800, tony@avonwood <tanda@xxxxxxxxxx>
wrote:

I am looking to poll our internal network for network devices that could
have any IP Address.

Assuming I know the IP range these devices will be within, can someone
point
me to a suitable tutorial where I can learn how to poll the IP Range, and
also query any device found for compatibility.

You'll have to define some terms first. What does it mean to "poll" one
of these devices? Do they respond to an ICMP ping? Or do they require
some specific protocol? What does "query for compatibility" mean?
Compatibility with what?

ICMP isn't hard to do. The System.Net.NetworkInformation.Ping class
provides an easy-to-use form of that. For the other stuff, the Socket
class might be useful, or it might not. I can't tell from your question,
because it's too vague so far. With respect to tutorials, I guess that
depends on what it turns out you're really trying to do. I don't know of
any great ones off the top of my head, but surely if we can get the
question described in a more specific way, Google can be helpful in
finding resources.

Pete


.



Relevant Pages

  • Re: Profiler sees very different durations for the same SQL select stmt of spid(s) from different c
    ... Our network team had assumed their responsibilities, ... query from query analyzer will definitely do. ... means connection issue or server issue. ... >> include the response time in network. ...
    (microsoft.public.sqlserver.server)
  • Re: Troubles with lan connection
    ... The response is: ... > Connection to croby failed ... Put both machines in the same network and try to ping again. ...
    (comp.os.linux.networking)
  • Re: Can I use PING in a VFP program?
    ... * 0 The PC doesn't exsist in the network ... > Has anyone ever used a VFP program to issue a ping ... > response to the ping, I know the VPN tunnel is up. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: resolve
    ... network connections properties, nomatter which name do I ping I get response ... >> get response from the last IP address added to network properties? ...
    (microsoft.public.win2000.dns)
  • Re: Unique Identifier for a machine
    ... Thanks for your response! ... If you have the difficulty to query the Processor Serial number, ... the Network Adapter's MAC address should be a good choice... ...
    (microsoft.public.dotnet.general)