-1

we have rhel 7.2 server with intel network adapters

we want to verify the Driver name by linux cli command

we not sure what is the network driver that installed ( could be i40e or e1000e or ixgbe/ixgbevf etc )

so is it possible to find the Driver name that installed on the server? by linux cli

we try by

lshw -class network

but lshw cli not installed and we want to find other way

yael
  • 12,598
  • 51
  • 169
  • 303
  • Related (though not specific to RHEL): https://unix.stackexchange.com/q/41817/315749, https://unix.stackexchange.com/q/83985/315749 – fra-san Oct 06 '20 at 11:52

1 Answers1

3

You can parse lspci’s output to determine which drivers are currently in use (not just installed):

lspci -vmmk |
awk '/^$/ { network = 0 } /(Ethernet|Network) controller/ { network = 1 } network && /Driver:/ { print $2 }'

Once you have the driver names, modinfo will give you more information, including the driver version:

sudo modinfo i40e | grep '^version:'
Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164