Category: ESXi

  • ESXi: Entering and exiting maintenance mode via command line

      Following on from yesterday’s post, here is how to enter or leave maintenance mode on an ESXi host via SSH:   vim-cmd hostsvc/maintenance_mode_enter   to go into maintenance mode – and to leave it:   vim-cmd hostsvc/maintenance_mode_exit   If you’re interested in other useful commands, you can see more hostsvc options by running:  …

  • ESXi: Determining maintanance mode status from the command line

      If you need to know if a host is in maintenance mode via the command line, SSH into your server and run the following:   vim-cmd hostsvc/hostsummary | grep -i maintenance   This will return the following line (in this example the host is NOT in maintenance mode):    inMaintenanceMode = false, To see…

  • How to find which version of ESXi you’re running from the command line?

      If you’re remotely logging in to a server to apply the latest patch but can’t remember whether you’re running 4, 4.1, 5.0 or 5.1 – and it can certainly happen when you’re managing quite a few of them remotely – there is a handy command to see which version and build number you’re actually…

  • ESXi: Accessing datastores via web browser

      This is one that a lot of people don’t seem to be aware of – did you know you could access your ESXi server’s datastores via a browser? It’s a convenient way of grabbing copies of ISOs or patches stored on your server for burning or use elsewhere. It’s set up automatically with ESXi…

  • esxcli: Update/patch produces “Could not download from depot” error

    In ESXi 5.1 you can patch using the following command:   esxcli software vib install -d /path/to/patch.zip   If you’re getting the following result (using ESXi510-20121001.zip as an example):    [MetadataDownloadError] Could not download from depot at zip:/var/log/vmware/ESXi510-201210001.zip?index.xml, skipping ((‘zip:/var/log/vmware/ESXi510-201210001.zip?index.xml’, ”, “Error extracting index.xml from /var/log/vmware/ESXi510-201210001.zip: [Errno 2] No such file or directory: ‘/var/log/vmware/ESXi510-201210001.zip’”)) url…

  • Checking SSD health with ESXi 5.1

    A new feature with ESXi 5.1 is the ability to check SSD health from the command line. Once you have SSH’d into the ESXi box, you can check the drive health with the following command:   esxcli storage core device smart get -d [drive]   …where [drive] takes the format of: t10.ATA?????????. You can find…