Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

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

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
Anonymous
N/A

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

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.

Silver

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

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

May be vendor MIB can help you walk through.

Thanks.

139
Views
0
Helpful
2
Replies
CreatePlease to create content