Determining Driver and Firmware Versions on vEsxi with Command Line Tools

In this article, we will provide a list of useful commands to determine the version and build of various components in vSphere, including the ESXi host, HBA drivers, firmware, and network interfaces. These commands can be helpful during the analysis phase of an upgrade or when troubleshooting issues.

1. Displaying the version and build of ESXi:

To display the version and build of ESXi, use the following command:

vmware -vl

This command will show you the version and build number of the installed ESXi host.

2. Determining the version of HBA drivers:

To determine the version of HBA drivers, use the following command:

esxcfg-scsidevs -a

This command will list all the SCSI adapters and their associated drivers. The driver version can be found in the “Driver” column.

3. Listing the firmware versions of HBA devices:

To list the firmware versions of HBA devices, use the following command:

esxcli storage core adapter list

This command will display a list of all HBA devices and their associated firmware versions.

4. Displaying the version of a specific HBA driver:

To display the version of a specific HBA driver, use the following command:

vmkload_mod -s HBADriver | grep Version

Replace “HBADriver” with the name of the specific driver you want to check. This command will show you the version number of the specified driver.

5. Listing all HBA devices and their associated firmware versions:

To list all HBA devices and their associated firmware versions, use the following command:

esxcli storage san [fc|iscsi|fcoe|sas] list ES

This command will display a list of all HBA devices and their associated firmware versions.

6. Determining the version of the driver and firmware for all HBA devices:

To determine the version of the driver and firmware for all HBA devices, use the following script:

for name in `vmkchdev -l | grep vmhba | awk ‘{print$5}’`;do echo $name ; echo “VID :DID  SVID:SDID”; vmkchdev -l | grep $name | awk ‘{print $2 , $3}’;printf “Driver: “;echo `esxcfg-scsidevs -a | grep $name |awk ‘{print $2}’`;vmkload_mod -s `esxcfg-scsidevs -a | grep $name|awk ‘{print $2}’` |grep -i version;echo `lspci -vvv | grep $name | awk ‘{print $1=$NF=””,$0}’`;printf “n”;done

This script will display the version of the driver and firmware for all HBA devices.

7. Displaying information about network interfaces:

To display information about network interfaces, use the following command:

esxcli network nic list

This command will display a list of all network interfaces on the ESXi host, along with their current status and other details.

8. Displaying information about a specific network interface:

To display information about a specific network interface, use the following command:

esxcli network nic get -n

Replace with the name of the specific network interface you want to check. This command will show you detailed information about the specified interface, such as its current status, IP address, and other details.

9. Determining which drivers are loaded:

To determine which drivers are loaded, use the following command:

esxcli software vib list

This command will display a list of all VIBs (vSphere Installation Bundles) that are currently loaded on the ESXi host.

10. Displaying information about a specific VIB:

To display information about a specific VIB, use the following command:

esxcli software vib list | grep “nome della vib” (vedi esempio vib “ata-libata-92”)

Replace “nome della vib” with the name of the specific VIB you want to check. This command will show you detailed information about the specified VIB, such as its version and build number.

In conclusion, these commands can be helpful during the analysis phase of an upgrade or when troubleshooting issues in vSphere. By using these commands, you can determine the version and build of various components in vSphere, including ESXi hosts, HBA drivers, firmware, and network interfaces.

Leave a Reply