On Mon, 2006-01-23 at 23:38 +0100, Torsten Zöhl [web.de] wrote: > i can´t find a way to read or change the ip addresses of the WLAN > interfaces...
The IP addresses of your local interfaces can be retrieved by walking the ipAdEntIfIndex column of the IP-MIB::ipAddrTable. > i can read out the MAC-adresses but there is no table which > gives me the ip addresses to the MAC-addresses. Not directly, no. The ipAdEntIfIndex column will report the mapping of which interface has which address(es). And the ifPhysAddr column of the IF-MIB::ifTable will report the mapping of interface to physical (MAC) address. Then just merge the two. > and for all the other tables (ip-table, at-table) i need the ip > adress to fill up the OID, which doesn´t make sence to me... Forget about the atTable - that's not relevant here. Yes, the ipAddrTable is indexed by IP address, so you can't go straight to the address for a particular interface. You need to "walk" the table (by sending a sequence of GETNEXT requests), and look for the matching entry. But remember that an interface can have more than one address, so indexing this table by the interface number wouldn't work. Dave ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users