2009/7/13 Sathyamuthy, Ramya <ramya.sathyamu...@hp.com>: > 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.
Then you would need to enable/configure SNMP on this, or some other widely used server. It doesn't have to be the DNS server - it could be a mail server, a file server, a web server, etc Something that most of the boxes you are interested in will be talking to. > Is there any way from which I can check if the SNMP is enabled > on the remote device? Preferably C code. Not really, no. If you make an SNMP request, this either means that SNMP is not enabled, or that you are using the wrong credentials (e.g. an unknown community string). Therre's no way to tell the difference from outside. You really need to look at the SNMP configuration of that server, and update this if necessary. (The underlying assumption is that if you are managing a box, then you can activate SNMP in order to do so.) > 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. Then you will need to activate SNMP on suitable servers on your network. If you want to use SNMP to help with this task, then SNMP needs to be turned on. If it's not working, then you can't expect to use it! 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 Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders