Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 

Interface speed and duplex as list

HeikoAnkenbrand
Champion Champion
Champion

This command shows the interface speed and duplex as list for R77.xx and R80.10.

 

# ifconfig -a | grep encap | awk '{print $1}' | grep -v lo | grep -v bond | grep -v ":" | grep -v ^lo | xargs -I % sh -c 'ethtool %; ethtool -i %' | grep '^driver\|Speed\|Duplex\|Setting' | sed "s/^/ /g" | tr -d "\t" | tr -d "\n" | sed "s/Settings for/\nSettings for/g" | awk '{print $5 " "$7 "\t " $9 "\t" $3}' | grep -v "Unknown" | grep -v "\."

 

_Val__0-1605787069859.png

 

 

Version 1.1

...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Disclaimer: Check Point does not provide maintenance services or technical or customer support for third party content provided on this Site, including in CheckMates Toolbox. See also our Third Party Software Disclaimer.




5 Replies

hong_jungil
Participant

nice command

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


krit
Participant

Heiko Ankenbrand Credits from me also for the command, whose advantage is that is generic.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

Maarten_Sjouw
Champion
Champion

Very nice one, a very simple other command to show all interfaces with their IP and Mac address:

ifconfig | grep addr

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

HeikoAnkenbrand
Champion Champion
Champion

helpful

THX,

Heiko

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

HeikoAnkenbrand
Champion Champion
Champion

THX,

Heiko

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos