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

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Wed 01 May 2024 @ 02:00 PM (EDT)

    South US: HTTPS Inspection Best Practices

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Wed 01 May 2024 @ 02:00 PM (EDT)

    South US: HTTPS Inspection Best Practices

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82
    CheckMates Events