<div dir="ltr" style="text-align: left;">
<div style="-webkit-text-stroke-width: 0px; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/15px Arial, Verdana, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #333333; display: inline !important; float: none; font-size-adjust: none; font-stretch: normal; font: 13px/18px Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">vCli, or Virtual command Line Interface is a free tool from VMware, and it&#8217;s 25+ cmdlets that allows you to do certain things. The easiest way to get it is the log onto the web interface for you ESXi host, and you&#8217;ll find a link that will take you right to the download site.</span></div>
<div style="-webkit-text-stroke-width: 0px; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/15px Arial, Verdana, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"> ;</div>
<p><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #333333; display: inline !important; float: none; font-size-adjust: none; font-stretch: normal; font: 13px/18px Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"></p>
<div style="-webkit-text-stroke-width: 0px; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/15px Arial, Verdana, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"> ;</div>
<table cellspacing="0" style="-webkit-text-stroke-width: 0px; border-bottom-color: rgb(220, 220, 220); border-bottom-style: solid; border-bottom-width: thin; border-collapse: collapse; border-top-color: rgb(220, 220, 220); border-top-style: solid; border-top-width: thin; color: black; letter-spacing: normal; margin: 0pt 0pt 16pt; padding: 5pt 10pt 3pt 0pt; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; width: 1051.67px; word-spacing: 0px;" summary="">
<tbody>
<tr>
<td colspan="1" rowspan="1" style="border-bottom-color: rgb(220, 220, 220); border-bottom-style: solid; border-bottom-width: thin; border-top-color: rgb(220, 220, 220); border-top-style: solid; border-top-width: thin; margin: 5px; padding: 2px; vertical-align: top;">
<div style="color: #333333; font-family: Arial, Helvetica, ";sans serif";; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; margin: 6pt 0pt; padding: 0px; text-align: left; text-indent: 0pt; text-transform: none; vertical-align: baseline;">ESXCLI commands</div>
</td>
<td colspan="1" rowspan="1" style="border-bottom-color: rgb(220, 220, 220); border-bottom-style: solid; border-bottom-width: thin; border-top-color: rgb(220, 220, 220); border-top-style: solid; border-top-width: thin; margin: 5px; padding: 2px; vertical-align: top;">
<div style="color: #333333; font-family: Arial, Helvetica, ";sans serif";; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; margin: 6pt 0pt; padding: 0px; text-align: left; text-indent: 0pt; text-transform: none; vertical-align: baseline;">Run<span> ;</span><span style="color: black; font-family: ";Lucida Console";, ";Courier New";, monospace; font-style: normal; font-variant: normal; font-weight: normal; text-transform: none; vertical-align: baseline;">&#8211;help</span><span> ;</span>at any level of the hierarchy for information </div>
<div style="color: #333333; font-family: Arial, Helvetica, ";sans serif";; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; margin: 6pt 0pt; padding: 0px; text-align: left; text-indent: 0pt; text-transform: none; vertical-align: baseline;">about both commands and namespaces available from that level.</div>
</td>
</tr>
</tbody>
</table>
<p></span></p>
<div style="-webkit-text-stroke-width: 0px; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/15px Arial, Verdana, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #333333; display: inline !important; float: none; font-size-adjust: none; font-stretch: normal; font: 13px/18px Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">For example to Backup ESXI configuration , <span style="-webkit-text-stroke-width: 0px; background-color: white; color: #333333; display: inline !important; float: none; font-size-adjust: none; font-stretch: normal; font: 13px/18px Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">First, you have to be in vCli to run this command</span></span></div>
<div style="-webkit-text-stroke-width: 0px; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/15px Arial, Verdana, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"> ;</div>
<div style="-webkit-text-stroke-width: 0px; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/15px Arial, Verdana, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">The vicfg-cfgbackup command backs up ESXi configuration data and restores them later. You can back up the host configuration, restore the configuration to the host, force the restore of the configuration, and reset the host to factory settings.</div>
<div style="-webkit-text-stroke-width: 0px; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/15px Arial, Verdana, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">Back up ESXi host configuration before you change the configuration or upgrade the ESXi image</div>
<div style="-webkit-text-stroke-width: 0px; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/15px Arial, Verdana, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"> ;</div>
<div style="-webkit-text-stroke-width: 0px; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/15px Arial, Verdana, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><strong>Parameters:</strong></div>
<div style="-webkit-text-stroke-width: 0px; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/15px Arial, Verdana, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"> ;</div>
<dt style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/normal Verdana, Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><strong>conn_options</strong></dt>
<dd style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/normal Verdana, Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 12px; line-height: 15px;">Specifies the target server and authentication information if required. Run<span> ;</span><code>vicfg-cfgbackup --help</code><span> ;</span>for a list of all connection options.</div>
</dd>
<dt style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/normal Verdana, Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><strong>&#8211;force | -f</strong></dt>
<dd style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/normal Verdana, Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 12px; line-height: 15px;">Forces the restore of the configuration.</div>
</dd>
<dt style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/normal Verdana, Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><strong>&#8211;help</strong></dt>
<dd style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/normal Verdana, Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 12px; line-height: 15px;">Prints a help message for each command-specific and each connection option. Calling the script with no arguments or with<span> ;</span><a href="https://www.vmware.com/support/developer/vcli/vcli41/doc/reference/vicfg-cfgbackup.html#item__2d_2dhelp" style="color: #95a8a6; text-decoration: none;"><code>--help</code></a><span> ;</span>has the same effect.</div>
</dd>
<dt style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/normal Verdana, Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><strong>&#8211;load | -l <backupfile></backupfile></strong></dt>
<dd style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/normal Verdana, Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 12px; line-height: 15px;">Restores configuration from <backupfile> onto the host.</backupfile></div>
</dd>
<dt style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/normal Verdana, Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><strong>&#8211;save | -s <backupfile></backupfile></strong></dt>
<dd style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/normal Verdana, Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 12px; line-height: 15px;">Backs up the host configuration.</div>
</dd>
<dd style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/normal Verdana, Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 12px; line-height: 15px;">Include the number of the build that is running on the host that you are backing up in the backup filename. If you are running the vSphere CLI from vMA, the backup file is saved locally on vMA. Local storage for backup files is safe because vMA is stored in the /vmfs/volumes/<datastore> directory, which is separate from the ESXi image and configuration files.</datastore></div>
</dd>
<dt style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/normal Verdana, Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><strong>&#8211;reset | -r</strong></dt>
<dd style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/normal Verdana, Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 12px; line-height: 15px;">Resets the host to factory settings.</div>
</dd>
<dt style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/normal Verdana, Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><strong>&#8211;quiet | -q</strong></dt>
<dd style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/normal Verdana, Arial, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 12px; line-height: 15px;">Performs all operations without prompting for confirmation</div>
</dd>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/15px Arial, Verdana, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"> ;</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-size-adjust: none; font-stretch: normal; font: 12px/15px Arial, Verdana, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><strong>Examples</strong></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; border: 0px currentColor; color: #666666; font-size-adjust: none; font-stretch: inherit; font: 14px/18px proxima-nova, Arial, sans-serif; letter-spacing: normal; margin: 2px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 1; word-spacing: 0px;"><span style="color: black;">The following examples assume you are specifying connection options, either explicitly or, for example, by specifying the server, user name, and password. Run<span> ;</span><code style="border: 0px currentColor; font-family: monospace !important; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">vicfg-cfgbackup --help</code><span> ;</span>for a list of common options including connection options.</span></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; border: 0px currentColor; color: #666666; font-size-adjust: none; font-stretch: inherit; font: 14px/18px proxima-nova, Arial, sans-serif; letter-spacing: normal; margin: 2px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 1; word-spacing: 0px;"><span style="color: black;">Back up the host configuration to the file C:backup.txt:</span></div>
<pre style="-ms-overflow-x: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px currentColor; color: #666666; font-family: monospace !important; font-size: 14px; font-stretch: inherit; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; margin: 0px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; widows: 1; word-spacing: 0px;"><span style="color: black;"> vicfg-cfgbackup <conn_options> -s C:backup.txt</conn_options></span></pre>
<div style="-webkit-text-stroke-width: 0px; background-color: white; border: 0px currentColor; color: #666666; font-size-adjust: none; font-stretch: inherit; font: 14px/18px proxima-nova, Arial, sans-serif; letter-spacing: normal; margin: 2px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 1; word-spacing: 0px;"><span style="color: black;"></span> ;</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; border: 0px currentColor; color: #666666; font-size-adjust: none; font-stretch: inherit; font: 14px/18px proxima-nova, Arial, sans-serif; letter-spacing: normal; margin: 2px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 1; word-spacing: 0px;"><span style="color: black;">Reset the host, that is, restore to factory settings:</span></div>
<pre style="-ms-overflow-x: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px currentColor; color: #666666; font-family: monospace !important; font-size: 14px; font-stretch: inherit; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; margin: 0px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; widows: 1; word-spacing: 0px;"><span style="color: black;"> vicfg-cfgbackup <conn_options> -r</conn_options></span></pre>
<div style="-webkit-text-stroke-width: 0px; background-color: white; border: 0px currentColor; color: #666666; font-size-adjust: none; font-stretch: inherit; font: 14px/18px proxima-nova, Arial, sans-serif; letter-spacing: normal; margin: 2px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 1; word-spacing: 0px;"><span style="color: black;"></span> ;</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; border: 0px currentColor; color: #666666; font-size-adjust: none; font-stretch: inherit; font: 14px/18px proxima-nova, Arial, sans-serif; letter-spacing: normal; margin: 2px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 1; word-spacing: 0px;"><span style="color: black;">Restore a configuration previously saved to C:backup.txt to the host:</span></div>
<pre style="-ms-overflow-x: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px currentColor; color: #666666; font-family: monospace !important; font-size: 14px; font-stretch: inherit; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; margin: 0px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; widows: 1; word-spacing: 0px;"><span style="color: black;"> vicfg-cfgbackup <conn_options> -l C:backup.txt</conn_options></span></pre>
<div style="-webkit-text-stroke-width: 0px; background-color: white; border: 0px currentColor; color: #666666; font-size-adjust: none; font-stretch: inherit; font: 14px/18px proxima-nova, Arial, sans-serif; letter-spacing: normal; margin: 2px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 1; word-spacing: 0px;"><span style="color: black;"></span> ;</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; border: 0px currentColor; color: #666666; font-size-adjust: none; font-stretch: inherit; font: 14px/18px proxima-nova, Arial, sans-serif; letter-spacing: normal; margin: 2px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 1; word-spacing: 0px;"><span style="color: black;">Restore a configuration from C:backup.txt without prompting for user confirmation:</span></div>
<pre style="-ms-overflow-x: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px currentColor; color: #666666; font-family: monospace !important; font-size: 14px; font-stretch: inherit; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; margin: 0px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; widows: 1; word-spacing: 0px;"><span style="color: black;"> vicfg-cfgbackup <conn_options> -l C:backup.txt -q</conn_options></span></pre>
</div>

