Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
victor_cortez
Contributor
Jump to solution

Type of NIC

Hi all,

 

I have some SGs on open server and I want to know brand and driver of the nics.

I lern from Max Power book to use this command:

ls -1 /sys/class/net | grep -v ^lo | xargs -i ethtool -i {} | grep driver

But the running version is r80.30 I cant get using this command above.

Did you guys know how to get by cli?

 

Tks,

Victor C

0 Kudos
1 Solution

Accepted Solutions
Timothy_Hall
Champion Champion
Champion

Use this (note that the argument to ls is a number 1, not a letter l):

ls -1 /sys/class/net | grep -v ^lo | xargs -i -t ethtool -i {} | egrep -e '^driver:|^version:'

ethtool -i eth0

driver: e1000
version: 7.3.21-k8-NAPI
ethtool -i eth1
driver: e1000
version: 7.3.21-k8-NAPI
ethtool -i eth2
driver: e1000
version: 7.3.21-k8-NAPI

Gateway Performance Optimization R81.20 Course
now available at maxpowerfirewalls.com

View solution in original post

2 Replies
PhoneBoy
Admin
Admin

This is just a clever command to get all the NICs and output the driver used for each one.
You can simply run ethtool against the various NICs (e.g. ethtool eth0) and get the same information, just not in as pretty a format.

Timothy_Hall
Champion Champion
Champion

Use this (note that the argument to ls is a number 1, not a letter l):

ls -1 /sys/class/net | grep -v ^lo | xargs -i -t ethtool -i {} | egrep -e '^driver:|^version:'

ethtool -i eth0

driver: e1000
version: 7.3.21-k8-NAPI
ethtool -i eth1
driver: e1000
version: 7.3.21-k8-NAPI
ethtool -i eth2
driver: e1000
version: 7.3.21-k8-NAPI

Gateway Performance Optimization R81.20 Course
now available at maxpowerfirewalls.com

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events