RE: Getting IP address of devices connected to a switch
"Sorrell, Al" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <D1DD4CF81CB5D44C85FA0C3ECB897F3101592B64@TC3637.corp.troweprice.net> |
> -----Original Message----- > From: [email protected] [mailto:net-snmp-users- > [email protected]] On Behalf Of Roy M. Silvernail > Sent: Wednesday, June 04, 2008 10:20 AM > To: amar > Cc: [email protected] > Subject: Re: Getting IP address of devices connected to a switch > > On Wed, Jun 04, 2008 at 07:36:50PM +0530, amar wrote: > > Hi, > > > > How can I get the IP address of the devices that are connected to a > switch? > > Is there any OID that can fetch them? > > Depends on what you mean by "connected". If you mean the devices > plugged into the switch ports, no. If you're looking for the addresses > of devices holding a TCP connection to the switch, > RFC1213-MIB::tcpConnTable has that. > -- > Roy M. Silvernail is [email protected], and you're not > "A desperate disease requires a dangerous remedy." > - Guy Fawkes > http://www.rant-central.com > For some manufacturers (e.g. Cisco) you CAN get the MAC address of device - look through dot1dTpFdbAddress. You need to get IP address/MAC pairings from routers via atPhysAddress and then 'smush' those together. Following are a few of my notes: # dot1dTpFdbAddress contains the Bridge Table with MAC addresses heard on each port. # It's indexed by a decimal representation of the MAC address which is its value. # # # dot1dTpFdbStatus contains either "mgmt", "self", or "learned" for each MAC address # It's indexed by a decimal representation of the MAC address like dot1dTpFdbAddress # # dot1dTpFdbPort maps the index into dot1dTpFdbAddress to a bridge port number # # # Finally, dot1dBasePortIfIndex maps the value from dot1dTpFdbPort into an ifIndex # Al The contents of this e-mail and any attachments are intended solely for the use of the named addressee(s) and may contain confidential and/or privileged information. Any unauthorized use, copying, disclosure, or distribution of the contents of this e-mail is strictly prohibited by the sender and may be unlawful. If you are not the intended recipient, please notify the sender immediately and delete this e-mail. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users