I tried using snmp to get ifdescr, I think the interface name containing Ethernet might be a physical port, but I am not sure.

In addition, the interface in dot3StatsIndex is also like a physical port, which is also not sure.

Is there any other idea or a solution to the problem?

  • 2
    Port naming conventions are vendor specific. You should specify which brand and model of switch you're trying to check.
    – Teun Vink
    Sep 17, 2019 at 10:50
  • Is there a uniform standard that can be used? Are there any consistent standards for all of different brands?
    – trgbishi
    Sep 17, 2019 at 11:08
  • 1
    No, hence 'vendor specific'. Vendors are free to chose their own naming scheme, there's not one standard for all brands.
    – Teun Vink
    Sep 17, 2019 at 11:11
  • This is not good news for me. I will contact the brand to ask tomorrow.
    – trgbishi
    Sep 17, 2019 at 11:29
  • If you tell us which brand you're looking at, we may be able to tell you what their naming scheme is.
    – Teun Vink
    Sep 17, 2019 at 11:37

1 Answer 1


You could try to use ifType from the interfaces MIB (IF-MIB). However, there's a lot of different interface types as you can see, and it's up to the individual vendor to correctly populate this table. In any case, there's most likely not one single value you can match on, a number of types can be used for physical interfaces, especially if you're also dealing with protocols other than ethernet (ATM for example).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.