Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python interface supported link speed

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.

like image 712
gtfx Avatar asked Feb 10 '26 15:02

gtfx


1 Answers

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.

like image 150
Leon Weber Avatar answered Feb 14 '26 05:02

Leon Weber