{"id":230,"date":"2017-07-24T02:01:42","date_gmt":"2017-07-24T00:01:42","guid":{"rendered":"http:\/\/hentati.org\/?p=230"},"modified":"2021-01-06T23:51:11","modified_gmt":"2021-01-06T22:51:11","slug":"top-vmware-commands","status":"publish","type":"post","link":"https:\/\/hentati.org\/index.php\/2017\/07\/24\/top-vmware-commands\/","title":{"rendered":"Top VMware commands"},"content":{"rendered":"<p><span style=\"color: #000000;\">By nature, I love commands in Linux systems, today we can also use command in VMware, let&#8217;s discover it together !<\/span><\/p>\n<p><span style=\"color: #000000;\">Knowing these commonly used ESXi commands is a must-have skill for command line troubleshooting.<\/span><\/p>\n<p><span style=\"color: #000000;\">Getting to know your way around the ESXi shell is crucial in those times of troubleshooting, and having a basic understanding of some of the most common Linux and ESXi commands is never a bad skill to list on your resume.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">I-Linux shell commands<\/span><\/h3>\n<p><span style=\"color: #000000;\">First up, let&#8217;s have a look at some common Linux shell commands. These are not specific just to ESXi \u2013 you will also find many, if not all, of these commands available in most Linux distributions today.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>find\/cat\/grep<\/strong>\u00a0\u2013 These three commands are crucial when trying to find specific files or text within a\u00a0 file. The\u00a0<em>find<\/em>\u00a0command will locate a specific file, based on either a filename or a pattern.\u00a0<em>Cat<\/em>\u00a0is used to simply display the contents of a file, while\u00a0<em>grep<\/em>\u00a0can be used to search for specific text within a single or group of files.<\/span><\/p>\n<pre><span style=\"color: #000000;\"><em>find \/path\/to\/vm\/folder \u2013iname \"*delta*\"<\/em>\u00a0\u2013 list all delta disks of a VM.\r\n\r\n<em>cat hostd.log | grep error<\/em>\u00a0\u2013 search occurrences of \"error\" within the hostd.log<\/span><\/pre>\n<p><span style=\"color: #000000;\"><strong>head\/tail<\/strong>\u00a0\u2013 These two commands can be very useful when viewing the contents of a file. While the &#8216;<em>cat&#8217;<\/em>\u00a0command\u00a0is great for displaying the complete contents of a file,\u00a0<em>head<\/em>\u00a0and\u00a0<em>tail<\/em>\u00a0can be used to show either just the beginning or end part of the file, skipping the contents in the middle.\u00a0<em>tail<\/em>\u00a0can be extremely useful in times of troubleshooting, especially when specifying the &#8216;-f&#8217; flag to\u00a0monitor log files\u00a0in real time.<\/span><\/p>\n<pre><span style=\"color: #000000;\"><em>tail -f \/var\/log\/vmkernel.log<\/em>\u00a0\u2013 watch the vmkernel log in real time.<\/span><\/pre>\n<p><span style=\"color: #000000;\"><strong>less<\/strong>\u00a0\u2013 The\u00a0<em>less<\/em>\u00a0command becomes extremely useful when you are displaying the contents of large files. By piping (&#8216;|&#8217;) your\u00a0<em>cat<\/em>\u00a0output to\u00a0<em>less<\/em>, you are able to have the system page the output, allowing us to scroll through the output, both up and down through the file.<\/span><\/p>\n<p><span style=\"color: #000000;\"><em>cat \/var\/log\/vpxa.log | less<\/em>\u00a0\u2013 output vpxa.log to the screen with a paging fashion.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>df\/vdf<\/strong>\u00a0\u2013 These two commands deal with presenting information about free space within file systems. The\u00a0<em>df<\/em>\u00a0command, now showing\u00a0VMFS data stores, will show the size, used and available space within both our file system and our data stores. To view the usage of the different ramdisks within an ESXi host, you must use the\u00a0<em>vdf<\/em>\u00a0command. Both commands are great for discovering any issues that may be caused due to low free space.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>ps\/kill<\/strong>\u00a0\u2013 These commands deal with discovering and forcibly terminating services that are running inside of the ESXi host. The\u00a0<em>ps<\/em>\u00a0command contains many command line switches, but is most commonly used to retrieve the running world ID of a process in order to send to the\u00a0<em>kill<\/em>\u00a0command. The\u00a0<em>kill<\/em>command then respectively terminates that process.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>vi\u00a0<\/strong>\u2013 Those who are unfamiliar with\u00a0<em>vi<\/em>\u00a0will most definitely have\u00a0trouble learning it. The\u00a0<em>vi<\/em>\u00a0command is a text editor that is used to modify the contents of a file \u2013 a must-have skill for any vSphere administrator performing troubleshooting from the command shell.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">II-ESXi-specific commands<\/span><\/h3>\n<p><span style=\"color: #000000;\">Next let&#8217;s look at some of the most common tasks performed while sitting on the ESXi command shell. These ESXi commands will help you not just with troubleshooting, but with your day to day maintenance as well as performance monitoring.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>services.sh<\/strong>\u00a0\u2013 While Linux services are normally handled using the\u00a0<em>services<\/em>command, ESXi services are handled much the same way utilizing the\u00a0<em>services.sh<\/em>\u00a0command.\u00a0<em>Services.sh<\/em>\u00a0can be passed with a stop, start, or restart flag to perform the respected operation on all ESXi services.<\/span><\/p>\n<pre><span style=\"color: #000000;\"><em>services.sh restart<\/em>\u00a0\u2013 restart all ESXi services.<\/span><\/pre>\n<p><span style=\"color: #000000;\">\/<strong>etc\/init.d<\/strong>\u00a0\u2013 The scripts located in \/etc\/init.d can be used to start\/stop their respective services one at a time. If you just wanted to restart the vCenter Server Agent (also known as the vpxa service), you could run\u00a0<em>\/etc\/init.d\/vpxa restart<\/em>\u00a0to restart it. On the other hand,\u00a0<em>services.sh restart<\/em>would restart all services.<\/span><\/p>\n<pre><span style=\"color: #000000;\"><em>\/etc\/init.d\/vpxa restart<\/em>\u00a0\u2013 restart vCenter Agent on host\r\n\r\n<em>cat \/etc\/chkconfig.db<\/em>\u00a0\u2013 view current running status of all ESXi services.<\/span><\/pre>\n<p><span style=\"color: #000000;\"><strong>vmkping<\/strong>\u00a0\u2013 We are all familiar with the functionality of the age old &#8216;<em>ping&#8217;<\/em>command. But,\u00a0<em>vmkping<\/em>\u00a0takes this one step further and allows you to use the IP stack of the VMkernel to send Internet Control Message Protocol (ICMP) packets through specified interfaces. Meaning, you could send a ping packet out through the vMotion network, rather than over the management network.<\/span><\/p>\n<pre><span style=\"color: #000000;\"><em>vmkping \u2013I vmk1 10.10.10.1<\/em>\u00a0\u2013 send ICMP request to 10.10.10.1 through vmk1 interface<\/span><\/pre>\n<p><span style=\"color: #000000;\"><strong>nc\u00a0<\/strong>\u2013 Coupled with\u00a0<em>vmkping<\/em>, the\u00a0<em>nc<\/em>\u00a0command (netcat) can be useful when confirming network connectivity to a certain IP from an ESXi host. While\u00a0<em>vmkping<\/em>\u00a0confirms communication through ICMP, there are times when we want to confirm connection on a specific\u00a0TCP\u00a0port (think iSCSI connections on port 3260).<\/span><\/p>\n<pre><span style=\"color: #000000;\"><em>nc \u2013z 10.10.10.10 3260<\/em>\u00a0\u2013 test connectivity to 10.10.10.10 on port 3260.<\/span><\/pre>\n<p><span style=\"color: #000000;\"><strong>vmkfstools\u00a0<\/strong>\u2013 If you ever need to manage\u00a0VMFS volumes\u00a0and virtual disks via the command line, then\u00a0<em>vmkfstools<\/em>\u00a0is the command for you. The\u00a0<em>vmkfstools<\/em>command allows you to\u00a0create, clone, extend, rename and delete\u00a0VMDK files. In addition to the virtual disk options, you can also create, extend, grow and reclaim blocks from our file systems with\u00a0<em>vmkfstools<\/em>.<\/span><\/p>\n<pre><span style=\"color: #000000;\"><em>vmkfstools \u2013i test.vmdk testclone.vmdk<\/em>\u00a0\u2013 clones test.vmdk to testclone.vmdk<\/span><\/pre>\n<p><span style=\"color: #000000;\"><strong>esxtop\u00a0<\/strong>\u2013 When it comes to performance monitoring and troubleshooting on an ESXi host, few tools can give you as much information as\u00a0<em>esxtop<\/em>. With similar functionality to the Linux\u00a0<em>top<\/em>\u00a0command,\u00a0<em>esxtop<\/em>\u00a0goes one step further by gathering VMware-specific metrics as they compare to CPU, interrupt, memory, network, disk adapter, disk device, disk VM and power management.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>vscsiStats<\/strong>\u00a0\u2013 When you need to go one step further with your performance monitoring of storage I\/O,\u00a0<em>vscsiStats<\/em>\u00a0can be a great help. The\u00a0<em>vscsiStats<\/em>command will help you gather a collection of data and metrics that pertain to a VM&#8217;s disk I\/O workload. In the end, you are basically left with a sample to help you gather the most common I\/O size and latency averages. Using\u00a0<em>vscsiStats<\/em>\u00a0can prove to be invaluable when capacity planning or migrating your back end storage as well.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>vim-cmd<\/strong>\u00a0\u2013\u00a0<em>Vim-cmd<\/em>\u00a0is a command space that is built over top of the hostd process, allowing the end user to script and command almost every vSphere API.\u00a0<em>Vim-cmd<\/em>\u00a0has a number of sub ESXi commands dealing with different portions of the virtual infrastructure and is very easy to use compared to its counterpart,\u00a0<em>vimsh<\/em>.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>dcui\u00a0<\/strong>\u2013 The VMware Direct User Console Interface (DCUI) is the menu-based option listing that you see when you initially log into an ESXi host. There are many different options available to you from the DCUI, such as\u00a0root password maintenance, network and maintenance. Sometimes you may only have SSH access to the host, but thankfully, you can still get to the DCUI menu-based system by simply executing\u00a0<em>dcui<\/em>\u00a0from the command line.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>vm-support<\/strong>\u00a0\u2013 Ever feel like grabbing a complete bundle of all the support and\u00a0log information\u00a0that you have inside of your ESXi host? That is exactly what\u00a0<em>vm-support<\/em>\u00a0does. This tool is invaluable, and if you have ever been on a support call with VMware, you have probably already ran this.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">III-Digging into the esxcli command<\/span><\/h3>\n<p><span style=\"color: #000000;\">The\u00a0<em>esxcli<\/em>\u00a0command is so vast that we cannot simply classify it as a single command.\u00a0<em>Esxcli<\/em>\u00a0contains many different namespaces allowing you to control virtually everything that ESXi offers. Listed below are some (but certainly not all) of the commonly used namespaces:<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>esxcli hardware<\/strong>\u00a0\u2013 The hardware namespace of\u00a0<em>esxcli<\/em>\u00a0can prove extremely useful when you are looking to get information about the current hardware and setup of your ESXi host<\/span><\/p>\n<pre><span style=\"color: #000000;\"><em>esxcli hardware cpu list<\/em>\u00a0\u2013 retrieve CPU information (family, model and cache).\r\n\r\n<em>esxcli hardware memory get<\/em>\u00a0\u2013 retrieve information about memory (available and\u00a0non-uniform memory access).<\/span><\/pre>\n<p><span style=\"color: #000000;\"><strong>esxcli iscsi<\/strong>\u00a0\u2013 The\u00a0<em>iscsi<\/em>\u00a0namespace can be used to monitor and manage both hardware and software iSCSI setups.<\/span><\/p>\n<pre><span style=\"color: #000000;\"><em>esxcli iscsi software<\/em>\u00a0\u2013 can be used to enabled\/disable the software iSCSI initiator.\r\n\r\n<em>esxcli iscsi adapter<\/em>\u00a0\u2013 can be used to setup discovery,\u00a0CHAP\u00a0and other settings for both your hardware and software iSCSI adapters.\r\n\r\n<em>esxcli iscsi sessions<\/em>\u00a0\u2013 can be used to list established iSCSI sessions on the host.<\/span><\/pre>\n<p><span style=\"color: #000000;\"><strong>esxcli network<\/strong>\u00a0\u2013 The network namespace of\u00a0<em>esxcli<\/em>\u00a0is extremely valuable when looking to monitor and make changes to anything and everything dealing with vSphere networking, including virtual switches, VMKernel network interfaces, firewalls and physical network interface cards (NICs).<\/span><\/p>\n<pre><span style=\"color: #000000;\"><em>esxcli network nic<\/em>\u00a0\u2013 list and modify NIC information, such as name, wake on LAN, and speeds.\r\n\r\n<em>esxcli network vm list<\/em>\u00a0\u2013 list networking information about your VMs that have an active network port.\r\n\r\n<em>esxcli network vswitch<\/em>\u00a0\u2013 Commands to retrieve and manipulate options on VMware's standard and distributed virtual switches.\r\n\r\n<em>esxcli network ip<\/em>\u00a0\u2013 Commands to manage\u00a0VMkernel\u00a0ports, including management, vMotion and Fault Tolerance networks. Also contains the ability to modify any of the IP stack in regard to the host, including\u00a0DNS,\u00a0IPsec\u00a0and routing information.<\/span><\/pre>\n<p><span style=\"color: #000000;\"><strong>esxcli software<\/strong>\u00a0\u2013 The software namespace can be used to retrieve and install different pieces of software and drivers on your ESXi host.<\/span><\/p>\n<pre><span style=\"color: #000000;\"><em>esxcli software vib list<\/em>\u00a0\u2013 list the software and drivers currently installed on the ESXi host<\/span><\/pre>\n<p><span style=\"color: #000000;\"><strong>esxcli storage<\/strong>\u00a0\u2013 This is perhaps one of the most used esxcli command namespaces and contains everything and anything you need in order to manage the core storage attached to vSphere.<\/span><\/p>\n<pre><span style=\"color: #000000;\"><em>esxcli storage core device list<\/em>\u00a0\u2013 list the current storage devices\r\n\r\n<em>esxcli storage core device vaai status get<\/em>\u00a0\u2013get the current status of\u00a0VAAIsupport on your storage devices.<\/span><\/pre>\n<p><span style=\"color: #000000;\"><strong>esxcli system<\/strong>\u00a0\u2013 This command gives you the ability to control ESXi advanced options, such as setting up syslog and managing host status.<\/span><\/p>\n<pre><span style=\"color: #000000;\"><em>esxcli system maintenanceMode set\u00a0\u2013enabled yes\/no<\/em>\u00a0\u2013 set the host into maintenance mode.\r\n\r\n<em>esxcli system settings advanced<\/em>\u00a0\u2013 View and change ESXi advanced settings (Hint: Use\u00a0<em>esxcli system settings advanced list\u00a0\u2013d<\/em>\u00a0to view the settings that deviate from the default).\r\n\r\n<em>esxcli system syslog<\/em>\u00a0\u2013 Syslog information and configuration<\/span><\/pre>\n<p><span style=\"color: #000000;\"><strong>esxcli vm<\/strong>\u00a0\u2013 The VM namespace of ESXi can be used to list out various tidbits of information about the VMs running on the host and shut them down forcibly if needed.<\/span><\/p>\n<pre><span style=\"color: #000000;\"><em>esxcli vm process list<\/em>\u00a0\u2013 List out process information for powered on VMs\r\n\r\n<em>esxcli vm process kill<\/em>\u00a0\u2013 Terminate running VM process, essentially shutting down or forcibly powering off a VM.<\/span><\/pre>\n<p><span style=\"color: #000000;\"><strong>esxcli vsan<\/strong>\u00a0\u2013 The VSAN namespace of ESXi contains a ton of commands dealing with\u00a0VSAN\u00a0setup and maintenance, including data store, network, fault domain, and policy configuration.<\/span><\/p>\n<pre><span style=\"color: #000000;\"><em>esxcli vsan storage<\/em>\u00a0\u2013 commands for configuring local storage for use with VSAN, including adding and removing physical disks and modifying auto claim.\r\n\r\n<em>esxcli vsan cluster<\/em>\u00a0\u2013 commands to leave\/join VSAN clusters on the local host.<\/span><\/pre>\n<p><span style=\"color: #000000;\"><strong>esxcli esxcli<\/strong>\u00a0\u2013 That&#8217;s right! The\u00a0<em>esxcli<\/em>\u00a0command has a namespace called &#8220;<em>esxcli<\/em>.&#8221; By using the\u00a0<em>esxcli<\/em>\u00a0namespace, you are able to get further information on any or all the commands that lie within the esxcli utility.<\/span><\/p>\n<pre><span style=\"color: #000000;\"><em>esxcli esxcli command list<\/em>\u00a0\u2013 list out every esxcli command on the system along with the functions it provides.<\/span><\/pre>\n<p><span style=\"color: #000000;\">Certainly the above commands and examples are not all ESXi has to offer. All of these ESXi commands have multiple switches and options available which server various functions. Most of them can be displayed by passing a &#8220;<em>\u2013h<\/em>&#8221; to the original command to bring up the help options.<\/span><\/p>\n<p><span style=\"color: #000000;\">Troubleshooting ESXi via the command line can be a daunting task, but by having a solid understanding of these ESXi commands, you will be well on your way to solving almost any issue that arises.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\"><span style=\"color: #000000;\">Have fun with those vSphere CLI commands !<\/span><\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<td><span style=\"color: #000000;\"><strong>Documentation<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>Description<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/esxcli_command.html\">esxcli command<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Lists descriptions of esxcli commands.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/esxcli_fcoe.html\">esxcli fcoe<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">FCOE (Fibre Channel over Ethernet) comands<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/esxcli_hardware.html\">esxcli hardware<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Hardware namespace. Used primarily for extracting information about the current system setup.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/esxcli_iscsi.html\">esxcli iscsi<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">iSCSI namespace for minitoring and managing hardware and software iSCSI.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/esxcli_license.html\">esxcli license<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">License management commands.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/esxcli_network.html\">esxcli network<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Network namespace for managing virtual networking including virtual switches and VMkernel network interfaces.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/esxcli_software.html\">esxcli software<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Software namespace. Includes commands for managing and installing image profiles and VIBs.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/esxcli_storage.html\">esxcli storage<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Includes core storage commands and other storage management commands.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/esxcli_system.html\">esxcli system<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">System monitoring and management command.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/esxcli_vm.html\">esxcli vm<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Namespace for listing virtual machines and shutting them down forcefully.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/svmotion.html\">svmotion<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Moves a virtual machine&#8217;s configuration file and optionally its disks while the virtual machine is running. Must run against a vCenter Server system.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-advcfg.html\">vicfg-advcfg<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Performs advanced configuration including enabling and disabling CIM providers. Use this command as instructed by VMware.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-authconfig.html\">vicfg-authconfig<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Manages Active Directory authentication.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-cfgbackup.html\">vicfg-cfgbackup<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Backs up the configuration data of an ESXi system and restores previously saved configuration data.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-dns.html\">vicfg-dns.pl<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Specifies an ESX\/ESXi host&#8217;s DNS (Domain Name Server) configuration.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-dumppart.html\">vicfg-dumppart<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Manages diagnostic partitions.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-hostops.html\">vicfg-hostops<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Allows you to start, stop, and examine ESX\/ESXi hosts and to instruct them to enter maintenance mode and exit from maintenance mode.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-ipsec.html\">vicfg-ipsec<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Supports setup of IPSec.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-iscsi.html\">vicfg-iscsi<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Manages iSCSI storage.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-module.html\">vicfg-module<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Enables VMkernel options. Use this command with the options listed, or as instructed by VMware.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-mpath.html\">vicfg-mpath<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Displays information about storage array paths and allows you to change a path&#8217;s state.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-mpath35.html\">vicfg-mpath35<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Configures multipath settings for Fibre Channel or iSCSI LUNs.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-nas.html\">vicfg-nas<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Manages NAS file systems.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-nics.html\">vicfg-nics<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Manages the ESX\/ESXi host&#8217;s NICs (uplink adapters).<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-ntp.html\">vicfg-ntp<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Specifies the NTP (Network Time Protocol) server.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-rescan.html\">vicfg-rescan<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Rescans the storage configuration.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-route.html\">vicfg-route<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Lists or changes the ESX\/ESXi host&#8217;s route entry (IP gateway).<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-scsidevs.html\">vicfg-scsidevs<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Finds available LUNs.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-snmp.html\">vicfg-snmp<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Manages the Simple Network Management Protocol (SNMP) agent.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-syslog.html\">vicfg-syslog<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Specifies the syslog server and the port to connect to that server for ESXi hosts.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-user.html\">vicfg-user<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Creates, modifies, deletes, and lists local direct access users and groups of users.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-vmknic.html\">vicfg-vmknic<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Adds, deletes, and modifies virtual network adapters (VMkernel NICs).<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-volume.html\">vicfg-volume<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Supports resignaturing a VMFS snapshot volume and mounting and unmounting the snapshot volume.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vicfg-vswitch.html\">vicfg-vswitch<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Adds or removes virtual switches or vNetwork Distributed Switches, or modifies switch settings.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vifs.html\">vifs.pl<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Performs file system operations such as retrieving and uploading files on the remote server.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vihostupdate.html\">vihostupdate<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Manages updates of ESX\/ESXi hosts. Use vihostupdate35 for ESXi 3.5 hosts.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vihostupdate35.html\">vihostupdate35<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Manages updates of ESX\/ESXi version 3.5 hosts.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vmkfstools.html\">vmkfstools<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Creates and manipulates virtual disks, file systems, logical volumes, and physical storage devices on ESX\/ESXi hosts.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"http:\/\/pubs.vmware.com\/vsphere-50\/topic\/com.vmware.vcli.ref.doc_50\/vmware-cmd.html\">vmware-cmd<\/a><\/span><\/td>\n<td><span style=\"color: #000000;\">Performs virtual machine operations remotely. This includes, for example, creating a snapshot, powering the virtual machine on or off, and getting information about the virtual machine.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By nature, I love commands in Linux systems, today we can also use command in VMware, let&#8217;s discover it together ! Knowing these commonly used ESXi commands is a must-have &#8230;<\/p>\n","protected":false},"author":1,"featured_media":232,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"_links":{"self":[{"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/posts\/230"}],"collection":[{"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/comments?post=230"}],"version-history":[{"count":10,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/posts\/230\/revisions"}],"predecessor-version":[{"id":863,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/posts\/230\/revisions\/863"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/media\/232"}],"wp:attachment":[{"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/media?parent=230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/categories?post=230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/tags?post=230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}