Hi Dave,

As u suggested I tried to retrive the DNS server IP and tried to query the 
ipNetToMediaTable. But in my DNS server the SNMP is not enabled. 

Is there any way from which I can check if the SNMP is enabled on the remote 
device? Preferably C code.

We are trying to discover the nodes in the subnet based on the list of MAC 
address given by the user. Currenty we are using the ICMP ping for the same, 
which takes a long time to retrive the information. 

So we are planning to do the same by querying the ipNetToMediaTable.

This is required for us to reduce the time taken to map the MAC address versus 
IP.

Thanks,
Ramya
 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf 
Of Dave Shield
Sent: Wednesday, July 08, 2009 1:11 PM
To: Sathyamuthy, Ramya
Cc: [email protected]
Subject: Re: Need help to enable snmp on multiple machines remotely

2009/7/7 Sathyamuthy, Ramya <[email protected]>:
> 2. Using net-SNMP Is there any otherway I can go about to get the 
> IP-MAC mapping for the entire subnet.

Try querying the network router for that subnet.
It should have a relatively complete ARP cache, since any device that 
communicates with anything outside that subnet will need to go the router.  So 
querying its ipNetToMediaTable might give you more information than a single 
random host would.


Similarly, selected internal servers (e.g. a fileserver, or the DNS servers) 
may have a relatively complete record of IP-MAC mappings.


Basically, think about what boxes everything else talks to.
If they talk to it, then it should have an ARP record.

Dave

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to