ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

Top 5 Useful VMware ESXi CLI Commands

By Vladan SEGET | Last Updated: January 11, 2024

Shares

When working with VMware ESXi and vSphere, there is a time when you have to go into the CLI and fix problems, look for details which you don't get through the UI or those details would be many clicks away. During those times you might appreciate to know and learn our selection of Top 5 Useful VMware ESXi CLI Commands.

There are many commands to know, but let's keep it simple for starters. Let's start to learn some really the useful ones. For example, you need to shut down a VM which you can't shut down or access through vSphere Web client or ESXi host client. This VM is unresponsive.

Or, you might be looking the exact build number of the ESXi host and since when it was installed.

Experienced VMware admins, I'm sure, know those already. But new people starting to learn VMware technology will certainly appreciate this guiding post.

Top 5 Useful VMware ESXi CLI Commands

“Softly” stop VM which is unresponsive.

Well, we will start with this one. In case the VM is frozen within the console and cannot be shut down gracefully through the console, you might want to try to shut down a VM gracefully via the CLI. You'll need a SSH access to connect remotely to your ESXi host and use an SSH client such as Putty.

We can stop (Kill) a VM which is unresponsive, and we have already done a post on that here – How to Power Off an Unresponsive VM. But today we'll do that more gently first. We'll use the soft switch to do that.

First, enter this command:

esxcli vm process list

to see the world ID number.

The do enter this

esxcli vm process kill -w 69135 -t soft

You have other options. “Hard” and “Force”. The -t switch can actually have 3 different options. (soft | hard | force). It is a mandatory parameter which sets the type of kill operation.

  • Soft – clean shutdown.
  • Hard – It will kill the VM processes immediately as in kill -9.
  • Force – The Force type should only be used as a last option (before rebooting the host).

Check which VIBs are installed on your ESXi host

VIBs are all the VMware drivers loaded. You can read my detailed post about How to install VIB on VMware ESXi here. Or check our post explaining Acceptance Levels and VIBs here.

You'll want to use this command to list all VIBs.

esxcli software vib list

The output looks like this:

Install time of your ESX host?

That's an interesting one. Even if not the most important one. I agree. But it's cool to be able to find out quickly the install date of your ESXi. Right?

Use this command:

esxcli system stats installtime get

7th of July 2017  -:). Nice.

ESXi Firewall Status Check

Another command which is useful is perhaps a command checking the firewall. If it's active or not.

Use this command:

esxcli network firewall get

It will just show you an output.

Here we can go further and show you how to enable or disable firewall, while we are here. It's pretty simple.

Use this:

esxcli network firewall set -e false

or

esxcli network firewall set -e true

if you want to disable or not your ESXi firewall.

Quickly show which version of ESXi you're running

Use this command to show ESXi version

esxcli system version get

The output looks like this:

You could get similar info through vSphere client, but not all.

Last one command which might be useful for exploring other commands that we haven't listed here. This command will list all commands.

esxcli esxcli command list

But you might want to use grep in order to filter because the list is just way too long.

For example

esxcli esxcli command list | grep time

gives all possible commands which have the word “time” in it. It's a good way to find commands related on what you're looking for.

The esxcli system is very rich command giving you access to the whole “system” namespace. But similar way you can also select other namespaces by typing simply

esxcli

This gives you the option to select the namespace you want.

More posts from ESX Virtualization:

  • VMware vSphere 8.0 U2 Released – ESXi 8.0 U2 and VCSA 8.0 U2 How to update (NEW)
  • What’s the purpose of those 17 virtual hard disks within VMware vCenter Server Appliance (VCSA) 8.0?
  • VMware vSphere 8 Update 2 New Upgrade Process for vCenter Server details
  • VMware vSAN 8 Update 2 with many enhancements announced during VMware Explore
  • What’s New in VMware Virtual Hardware v21 and vSphere 8 Update 2?
  • Homelab v 8.0 
    • NXJ6412 Maxtang EHL30 TPM Alert in vCenter Server 8.0 BIOS Config
    • vSphere 8 Lab with Cohesity and VMware vExpert gift – Maxtang’s NX 6412 NUC
    • VMware Cohesity vExpert Gift VMware EXPLORE 2022 Barcelona
  • vSphere 8.0 Page
  • Veeam Bare Metal Recovery Without using USB Stick (TIP)
  • ESXi 7.x to 8.x upgrade scenarios
  • A really FREE VPN that doesn’t suck
  • Patch your ESXi 7.x again
  • VMware vCenter Server 7.03 U3g – Download and patch
  • Upgrade VMware ESXi to 7.0 U3 via command line
  • VMware vCenter Server 7.0 U3e released – another maintenance release fixing vSphere with Tanzu
  • What is The Difference between VMware vSphere, ESXi and vCenter
  • How to Configure VMware High Availability (HA) Cluster

Stay tuned through RSS, and social media channels (Twitter, FB, YouTube)

Shares
Vote !

| Filed Under: How To, Server Virtualization Tagged With: Top 5 Useful VMware ESXi CLI Commands

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Jody Whitlock says

    March 1, 2018 at 2:54 am

    Very nice article. I often use ESXCLI from PowerCLI, so I can easily tab-complete most of the namespaces but sometimes I do need to ssh in and it’s usually a little fumbling around.

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in