cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
310
Views
0
Helpful
2
Replies

Port-interface mapping - URGENT .. Please help ... !!!

sunil_khatri
Level 1
Level 1

Hi everyone,

I am developing an application which basically has to SNMP read a Cisco switch and get the nummber of ports and their information. I know that ".iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable" will give me all the interfaces for the switch but not ports. I want to know if some OID exists which can tell me the relationship between a port and interface since both are not necesarily be the same. The Bridge MIB tells which port is mapped to which interface but this information is only for the ports which are active (UP) . Can someone please tell me how should I do it ???.. Any help will be highly appreciable.

Thanks a lot .

Sunil

2 Replies 2

Not applicable

The "iftable" will contain information about all the ports, so the number of rows in iftable will be the number of ports. The "dot1dBasePortTable" will contain entries only if the bridge is configured.

interfaces.ifNumber ( or, 2.1 ) will provide you with the total number of interfaces.

May be vendor MIB can help you walk through.

Thanks.