How to get the mac address on a specific switch port?
-
Hey guys... I have the last couple of days explored the beauty of SNMP protocol for smart network device programming using MIBs og OIDs.... But I was thinking, how does I get the mac address of a device, eg. connect to switch port number #12? I have looked at the cisco example, but it seems to but the opposite case (you KNOw the mac address, and want to find the specific port on the siwtch). In my case its like: "You KNOW the PORT located on the switch, and want to extract the MAC address on the equipment connected to that specific port". Any1 got an idea that could help me in the right direction?
-
Hey guys... I have the last couple of days explored the beauty of SNMP protocol for smart network device programming using MIBs og OIDs.... But I was thinking, how does I get the mac address of a device, eg. connect to switch port number #12? I have looked at the cisco example, but it seems to but the opposite case (you KNOw the mac address, and want to find the specific port on the siwtch). In my case its like: "You KNOW the PORT located on the switch, and want to extract the MAC address on the equipment connected to that specific port". Any1 got an idea that could help me in the right direction?
-
Thanks for your suggestions, but it didn't quiet make my solution. I'm looking for an API with a DLL I can use for this purpose, I want to use the existing SNMP protocol with correct MIBs and OIDs to collect and find the mac address on a switch port which is already known. I have almost figured out at this time, how I locate a switch port based on a known mac address, but I want the opposite options if even possible? My last thoughs was read the FDB table mib request (which should return all mac address' and portnumber for each?), and sort them after the port number? But I stumbled on it, cuz it seems that it returns some wrong bits (which ain't representing the MAC address in HEX string). Any other suggestions, that could help me using the SNMP and mibs, collecting a mac address, on a KNOWN switch port?