Wednesday , September 20 2017
Home > ESXi Command Line > ESXi Commands Part-1: Basic Commands

ESXi Commands Part-1: Basic Commands

VMware ESXi is hypervisor which enables the virtualization on the physical server. In this series we will see on how you can easily get information using commands in ESXi. This is the first part where we will see some of the basic commands only where you can find the ESXi version details, Networking details & you can do the basic operations in ESXi. This will not be the complete list of commands but i will share the list as much as i can. There are multiple variety of commands are there in ESXi but we will look one after one. Commands are good to know who are new to the VMware vSphere ESXi.

First you will need to enable the SSH on the ESXi to get the access to the ESXi. By default SSH Access is disabled for the security purpose. For enabling SSH on ESXi follow the steps:
Choose the Host > Configuration > Software Section > Security Profile > Services
Click on Properties.
Find SSH & click on Options here you can start, stop or restart the Service.

 

For vSphere Web Client Check Below link:
Enable SSH using vSphere Web Client.

For Accessing the ESXi console you will require Putty. You can download it from the Putty.org website.

Now Let’s start with some of basic commands.

Basic commands for ESXi :
Basic commands includes the basic operations which you can do in the ESXi console such as listing the directories, changing the directory, checking the date etc etc.
Commands:

ls  >listing the directory.
ls -l  >to check the directories with details.
pwd   >finding the present working directory.
cd   >change the working directory.
date  >finding the date & time.

ESXi-Commands-basic-2

 

Finding the ESXi version & updates:
This will help you to find the ESXi version with build numbers & the installed VIB’s.

vmware -l   >For ESXi version
vmware -v  >For ESXi version with build

ESXi-Commands-basic-1

 

esxcli software vib list   >For checking installed VIB.

ESXi-Commands-basic-3

 

Finding the Hostname & IP address:
Basic command to find the ESXi host name & IP address.

hostname    >For finding the hostname
hostname -i    >For finding IP address.

ESXi-Commands-basic-4

 

Monitoring the ESXi load:
This will help you to find the load of the ESXi Sever. Here you can find the services running with their process ID & Name. It will also display the average CPU load.

esxtop

ESXi-Commands-basic-5

 

Start or Stop the services:
Using this command you can start or stop the services in the ESXi.

services.sh

ESXi-Commands-basic-6

 

Checkout our Posts on ESXi Command Line Series:-

ESXi Commands Part-2: Finding Hardware information using esxcli

ESXi Commands Part-3 : Managing ESXi using esxcli commands

ESXi Commands Part-4 : Managing ESXi Networking using esxcli commands

ESXi Commands Part-5 : Finding VM information using esxcli

ESXi Commands Part-6 : Managing Storage using esxcli

That’s it for Today Friends. I Hope you liked reading this post & If you find anything more to be added or removed feel free to write it in our comments. If you find it useful You are Feel free to share this on social media to help others & spread knowledge.
If you have any query on any thing you are free to write it in our comments section & we will make sure to provide you the better solution as soon as possible.

Join Our LinkedIn Group to get Updates & Discussions : Mastering VMware.
Checkout our Facebook Group for discussions & more.
You can also Like & Share our Facebook Page for Latest Updates.

About Mayur Parmar

Hi I am Mayur Parmar. Independent Author & Founder of Mastering VMware. I am working in IT industry for more than 2 Years with knowledge of VMware , Microsoft Server's, Linux Server's.

Check Also

drs-lens

VMware Fling: DRS Lens

DRS Lens is an fling from VMware which helps to monitor your vSphere DRS clusters. …

2 comments

Leave a Reply

Your email address will not be published. Required fields are marked *

four + one =