Show SCSI / HBA modules in ESXi 6.5 with file and version information
Posted by jpluimers on 2019/05/02
A small script I made: Show SCSI / HBA modules in ESXi 6.5 with file and version information:
MODULES=`esxcfg-scsidevs --hbas | awk 'FNR > 0 {print $2}'`
for MODULE in $MODULES ; do
# echo "Probing $MODULE"
vmkload_mod --showinfo $MODULE | grep 'file: \|Version'
done
The script is based on ideas from [WayBack] Determining Network/Storage firmware and driver version in ESXi 4.x and later (1027206) | VMware KB
It works in at least ESXi 6.5 where it shows this on one of my systems:
input file: /usr/lib/vmware/vmkmod/lsi_msgpt3 Version: 12.00.02.00-11vmw.650.0.0.4564106 input file: /usr/lib/vmware/vmkmod/vmw_ahci Version: 1.0.0-39vmw.650.1.26.5969303 input file: /usr/lib/vmware/vmkmod/vmw_ahci Version: 1.0.0-39vmw.650.1.26.5969303 input file: /usr/lib/vmware/vmkmod/vmw_ahci Version: 1.0.0-39vmw.650.1.26.5969303 input file: /usr/lib/vmware/vmkmod/lsi_mr3 Version: 6.910.18.00-1vmw.650.0.0.4564106 input file: /usr/lib/vmware/vmkmod/megaraid_sas Version: Version 6.603.55.00.2vmw, Build: 4564106, Interface: 9.2 Built on: Oct 26 2016 input file: /usr/lib/vmware/vmkmod/vmkusb Version: 0.1-1vmw.650.1.26.5969303
–jeroen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| input file: /usr/lib/vmware/vmkmod/lsi_msgpt3 | |
| Version: 12.00.02.00-11vmw.650.0.0.4564106 | |
| input file: /usr/lib/vmware/vmkmod/vmw_ahci | |
| Version: 1.0.0-39vmw.650.1.26.5969303 | |
| input file: /usr/lib/vmware/vmkmod/vmw_ahci | |
| Version: 1.0.0-39vmw.650.1.26.5969303 | |
| input file: /usr/lib/vmware/vmkmod/vmw_ahci | |
| Version: 1.0.0-39vmw.650.1.26.5969303 | |
| input file: /usr/lib/vmware/vmkmod/lsi_mr3 | |
| Version: 6.910.18.00-1vmw.650.0.0.4564106 | |
| input file: /usr/lib/vmware/vmkmod/megaraid_sas | |
| Version: Version 6.603.55.00.2vmw, Build: 4564106, Interface: 9.2 Built on: Oct 26 2016 | |
| input file: /usr/lib/vmware/vmkmod/vmkusb | |
| Version: 0.1-1vmw.650.1.26.5969303 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MODULES=`esxcfg-scsidevs –hbas | awk 'FNR > 0 {print $2}'` | |
| for MODULE in $MODULES ; do | |
| # echo "Probing $MODULE" | |
| vmkload_mod –showinfo $MODULE | grep 'file: \|Version' | |
| done |






Leave a comment