Cisco Switch Port Type – How to Recognize via SNMP

ciscosfpsnmp

I would like to filter just copper ports with snmp walks from a Cisco 2960 L2 switch.
I already searched the Cisco SNMP Mibs but I did not found anything if the port is a copper or SFP port.

ifType (1.3.6.1.2.1.2.2.1.3) is 6 (Ethernet) whether copper or SFP port.

Thank you in advance.

Best Answer

You can get this information from the ifMauType which returns a value from this list

This is defined in the MAU-MIB from RFC4836