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

ESXi Commands List – Getting started

By Vladan SEGET | Last Updated: February 16, 2017

Shares

I thoughts that it might be a good idea to put a list of commands which are used to manage ESXi hosts. This list is certainly not a complete list, but I'd like to list some of those used often or the ones that are good to know for folks starting to learn virtualization technologies or folks who are not comfortable with ESXi CLI management just yet.

There are a variety of commands which are able to to do all you need. Changing network configs, changing time, manage local permissions,

Let's start with the basis. To connect to ESXi host via command line, one need to open SSH session. Note that by default the SSH service is disabled. To enable SSH open the vSphere client and Select your host > Configuration > Security Profile (under software) > Properties.

I'm sure you've seen this screen thousands times. New folks listen…

Enable SSH

Note that you can also enable shell access via DCUI (direct connect user interface), via the console.

Access the direct console of the ESXi host, press F2, and provide credentials when prompted > Scroll to Troubleshooting Options, and press Enter > Select Enable ESXi Shell and press Enter > On the left, Enable ESXi Shell changes to Disable ESXi Shell. On the right, ESXi Shell is Disabled changes to ESXi Shell is Enabled.

ESXi Shell Access

As for the SSH client, my preference goes to Putty, but it's not the only one SSH client out there… Just google for “ssh client”. I usually have a portable version of the putty client on a network share or rather on my Dropbox, so I can access it from anywhere. I remember there is also a Firefox extension, so there is many ways actually to get an SSH client onto your desktop/laptop station. I'm a Windows guy (concerning my management stations) so I have SSH client pretty much everywhere.

Let's get back to our commands lists for today's post. But before we do that let's have a look at the sbin directory which tools are available to manage the ESXi

cd /usr/sbin

and then

ls

ESXi command

You'll obtain a list of standard Linux tools and also a VMware specific, like the ones for esxcfg, esxtop or esxcfg-vmknic for vmkernel interfaces. For example the escfg-nics whic allows to get information on the nics gives you an output like this:

esxcfg-nics

ESXi commands

Ok, let's start start with some basic system commands.

esxcli system

this command gives you access deeper to the available namespace and shows you that there is more behind…

ESXi commands

try this:

esxcli system shutdown

esxi command list

As you can see the power off or reboot via command line is really at your fingertips. Not difficult, right?

esxcli system version get

Gives you interesting information about patches and release version

VMware ESXi commands

Another useful command under the esxcli system might be this one:

esxcli storage

Again, the available namespaces are displayed along….

ESXi commands

And if we for example, enter the

esxcli storage nfs list

we'll obtain some nice details about our NFS mount and specifics like VAAI acceleration support !!

ESXcli storage nfs

So that's the start. I'll try to add additional posts to this so we can see further, but you get the point. Type the command to see further options, and if you don't know what's the possibility of a command you can always type -h (help) to get more info on a command…

A small example of getting help:

type:

esxcli storage nfs -h

VMware esxcli commands

As you can see, the CLI and VMware is not that difficult and while quite little is enough to learn your way through afterwards, CLI can get complex where you can script PowerCLI scripts to do action, to perform changes on large scale architectures. CLI is very powerful, but learning a bit here and there is the way to go for “non-scripting” folks… -:). Stay tuned for more.

More ESXi CLI commands:

  • ESXi CLI Networking commands
  • ESXi Commands List – Getting Started – (This post)
  • ESXi Commands List – Snapshot Deletion Monitoring
  • ESXi Commands List – Storage
Shares
5/5 - (2 votes)

| Filed Under: Server Virtualization Tagged With: ESXi Commands List

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. Joe says

    August 14, 2015 at 12:58 am

    Run “esxcli esxcli command list” for the entire cli command list

    • Vladan SEGET says

      August 14, 2015 at 6:50 am

      Hi Joe,
      Absolutely! Thanks for your comment.

  2. Jacekkz says

    April 4, 2016 at 9:54 am

    Nice tutor do you knew maybe where can I found list of all command ?

  3. VK says

    April 16, 2016 at 5:39 pm

    thanks it help me

  4. Clifford Trueman says

    June 10, 2016 at 5:51 pm

    Great intro for people who are familiar with virtualization; but not so with esxi.

    Any guidance for creating, starting and stopping VMs from CLI?

  5. Saravanan says

    July 14, 2016 at 12:43 pm

    very good info. I understood how deal with command line with safer side..

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

  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!
  • Installation of StarWind VSAN Plugin for vSphere
  • Protect Mixed environments with Nakivo Physical Machine recovery (bare metal)
  • No more FREE licenses of VMware vSphere for vExperts – What’s your options?
  • Tails – Your Private OS on USB Stick
  • StarWind V2V Converter Now has CLI
  • Veeam VHR ISO v2 – 2025 Download and Install
  • Deployment OVA and Installation of Nakivo Backup and Replication for VMware
  • XCP-NG FREE Hypervisor and XO Lite to deploy XOA

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