Which OIDs give these information?

Which OID will give these details ?

  1. List of Mac Addresses that connected to a switch
  2. List of IP Addresses that connected to a router

A friend of mine told me that a switch and a router holds those information and I hope he’s right.

Thanks.

Why don’t you perform an SMNP-Walk of the switch and find out what’s available (and what’s not)?

You would need to know the correct MIB to extract information form the ARP cache your devices. These would be specific to your products manufacturer.
Conversely, you could use nmap -sP to ping sweep the router/switch and get the list that way.

It’s an extremily long list (and sometime it’s still “walking”..) so it’s hard to find the information.


  1. Does the dude software come with a pack of MIB files?
  2. Where can I get MIB files ?
  3. How do I use the MIB file to extract the information ?

Thank you.

  1. Does the dude software come with a pack of MIB files?

Yes, there is a MIB library in The Dude, but it is not all-inclusive. You can manually add new MIB’s to The Dude for your specific hardware. There is an MIB import function available. You can find this under Files in the menu.

  1. Where can I get MIB files ?

Google is still your friend. There are several repositories for MIB files, as well as many manufacturers making the MIB files available. Try http://www.mibsearch.com for a searchable database of MIBs.

  1. How do I use the MIB file to extract the information ?

MIB files are commented (most of the time) to detail what functions are available. If you are not that familiar with the structure of MIBs, try http://en.wikipedia.org/wiki/Management_Information_Base for an overview. Unfortunately, this is not an instant gratification topic. Look at us talking when there’s science to be done.

I am using 3 COm switch. When I see the website I see his http://www.mibsearch.com/vendors/3Com/ (there are 17 MIB fiels).

Which one I should load if I want to get the routing table ?

Thank you.

If you click on the View Objects link, you will get the details of what each file defines.

The module names give some indication as to what the function of the MIB is.
You may find model specific MIBs here: http://support.3com.com/software/mibs_transcend.htm
See if your model is listed there.

But why can’t I see my model 4500 G in the list ? Or it’s there any other specific model name for my switch ?

Thanks for the response.

http://support.3com.com/infodeli/tools/switches/4500/s3n03_01_00M.exe

This should have the MIB file in it.

Everything works fine now, thanks for your help.

However for the OID “.1.3.6.1.2.1.4.22”, isn’t it supposed to list down only the IPs that connect to the device ? Because whenever I change the target host (to different switches IP) I still can see my IP 10.207.161.17 in the list. Any idea?

Thanks.

Is the Dude running from your IP? That may cause it to show up in the list since it is connecting to the device.

Just a thought.

Yes the dude is running in my pc. Why does it have anything to do with that ?

Because your PC is connecting to the device, through one of its ports, and you are asking for information about what is connecting to the device ports, you are going to see your own IP address in the list of things connecting to the device. Savvy?

Seriously, I’m not trying to be facetious or flame you - but I hope you aren’t learning this stuff in a production environment.