Community discussions

MikroTik App
 
abiieez
just joined
Topic Author
Posts: 7
Joined: Fri Jun 13, 2008 6:08 am

Which OIDs give these information?

Wed Jun 18, 2008 12:48 pm

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.
 
winkelman
Member Candidate
Member Candidate
Posts: 231
Joined: Wed Aug 16, 2006 5:00 pm
Location: Amsterdam, The Netherlands

Re: Which OIDs give these information?

Wed Jun 18, 2008 3:38 pm

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)?
 
talon63
Frequent Visitor
Frequent Visitor
Posts: 65
Joined: Tue Mar 25, 2008 2:31 pm
Location: Texas USA

Re: Which OIDs give these information?

Wed Jun 18, 2008 3:54 pm

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.
 
abiieez
just joined
Topic Author
Posts: 7
Joined: Fri Jun 13, 2008 6:08 am

Re: Which OIDs give these information?

Thu Jun 19, 2008 5:50 am

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)?
It's an extremily long list (and sometime it's still "walking"..) so it's hard to find the information.

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.
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.
 
talon63
Frequent Visitor
Frequent Visitor
Posts: 65
Joined: Tue Mar 25, 2008 2:31 pm
Location: Texas USA

Re: Which OIDs give these information?

Thu Jun 19, 2008 5:04 pm

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.
2. 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.
3. 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 ... ation_Base for an overview. Unfortunately, this is not an instant gratification topic. Look at us talking when there's science to be done.
 
abiieez
just joined
Topic Author
Posts: 7
Joined: Fri Jun 13, 2008 6:08 am

Re: Which OIDs give these information?

Fri Jun 20, 2008 10:53 am

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.
 
talon63
Frequent Visitor
Frequent Visitor
Posts: 65
Joined: Tue Mar 25, 2008 2:31 pm
Location: Texas USA

Re: Which OIDs give these information?

Fri Jun 20, 2008 3:02 pm

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.
 
abiieez
just joined
Topic Author
Posts: 7
Joined: Fri Jun 13, 2008 6:08 am

Re: Which OIDs give these information?

Mon Jun 23, 2008 11:44 am

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.
 
talon63
Frequent Visitor
Frequent Visitor
Posts: 65
Joined: Tue Mar 25, 2008 2:31 pm
Location: Texas USA

Re: Which OIDs give these information?

Mon Jun 23, 2008 3:45 pm

http://support.3com.com/infodeli/tools/ ... 01_00M.exe

This should have the MIB file in it.
 
abiieez
just joined
Topic Author
Posts: 7
Joined: Fri Jun 13, 2008 6:08 am

Re: Which OIDs give these information?

Tue Jun 24, 2008 11:26 am

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.
 
talon63
Frequent Visitor
Frequent Visitor
Posts: 65
Joined: Tue Mar 25, 2008 2:31 pm
Location: Texas USA

Re: Which OIDs give these information?

Tue Jun 24, 2008 10:43 pm

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.
 
abiieez
just joined
Topic Author
Posts: 7
Joined: Fri Jun 13, 2008 6:08 am

Re: Which OIDs give these information?

Wed Jun 25, 2008 8:56 am

Yes the dude is running in my pc. Why does it have anything to do with that ?
 
talon63
Frequent Visitor
Frequent Visitor
Posts: 65
Joined: Tue Mar 25, 2008 2:31 pm
Location: Texas USA

Re: Which OIDs give these information?

Wed Jun 25, 2008 5:05 pm

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.

Who is online

Users browsing this forum: No registered users and 67 guests