• Skip to primary navigation
  • Skip to main content

jdgreen.io

The personal blog of James Green

  • Home
  • Technology
    • Announcements
    • Industry
    • Reviews/Guides
    • Tech Field Day
    • Interviews
  • Health
    • Food
    • Biohacking
    • Fitness
  • Faith
  • Book Notes
    • Business Books
    • Faith Books
    • Health Books
    • Technology Books
  • About
  • Show Search
Hide Search

Check ESXi Driver Versions

James Green · May 29, 2014 ·

When you’re using ‘esxcli’ to check drivers on ESXi, they’re referred to as ‘modules.’ You can run this bit of PowerCLI to quickly confirm which version of a module you’re running across a cluster. This came in handy for me recently as we found out we were running outdated enic and fnic (network) drivers. All that needs to be modified are the field rendered in blue: [Cluster name] to select the hosts, and [Module] to specify the driver to query. Hope this comes in handy for someone else!

[code language=”ps”] $hosts = Get-Cluster "[CLUSTER NAME]" | Get-VMHost
$versions = @{}
Foreach($vihost in $hosts){
$esxcli = Get-VMHost $vihost | Get-EsxCli
$versions.Add($vihost, ($esxcli.system.module.get("[MODULE]") |
Select Version))
}
$versions.GetEnumerator() | Sort Name
[/code]

VMware

James Green is an enterprise IT consultant, a product of an amazing IT community, and a partner in ActualTech Media. He is a serial vExpert designee and a passionate Tech Field Day delegate and supporter. » Read Full Bio...

James Green: View My Blog Posts

Copyright © 2023 · Monochrome Pro on Genesis Framework · WordPress · Log in

Posting....