From 9ab669d726d9e8658308e84804fb82bff6bb0bcb Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 3 Jun 2020 16:29:09 +0200 Subject: op-mode: ethernet: T2546: migrate basic commands - show interfaces ethernet eth0 physical - show interfaces ethernet eth0 physical offload - show interfaces ethernet eth0 statistics - show interfaces ethernet eth0 transceiver --- op-mode-definitions/show-interfaces-ethernet.xml | 47 ++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 op-mode-definitions/show-interfaces-ethernet.xml diff --git a/op-mode-definitions/show-interfaces-ethernet.xml b/op-mode-definitions/show-interfaces-ethernet.xml new file mode 100644 index 000000000..e19505d26 --- /dev/null +++ b/op-mode-definitions/show-interfaces-ethernet.xml @@ -0,0 +1,47 @@ + + + + + + + + + Show ethernet interface information + + interfaces ethernet + + + + + + Show physical device information for specified ethernet interface + + /sbin/ethtool "$4"; /sbin/ethtool -i "$4" + + + + Show physical device offloading capabilities + + /sbin/ethtool -k "$4" + + + + + + Show physical device statistics for specified ethernet interface + + /sbin/ethtool -S "$4" + + + + Show transceiver information from modules (e.g SFP+, QSFP) + + /sbin/ethtool -m "$4" + + + + + + + + -- cgit v1.2.3