What is the preferred and cross-platform (Ubuntu, Redhat) way to get supported interface link speed?
i am familiar with ethtool, but i would like an option not to use an external tool, but only python.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s actually a python module providing bindings for the ethtool kernel interface. This sound like what you’re looking for. See https://github.com/fedora-python/python-ethtool for details.