<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Esxi on Di</title>
        <link>https://dixu.ddns.net/tags/esxi/</link>
        <description>Recent content in Esxi on Di</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <lastBuildDate>Thu, 24 Sep 2026 12:00:00 -0400</lastBuildDate><atom:link href="https://dixu.ddns.net/tags/esxi/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>VMware ESXi Administration Command Reference</title>
            <link>https://dixu.ddns.net/p/vmware-esxi-administration-command-reference/</link>
            <pubDate>Wed, 28 Aug 2024 11:50:21 -0500</pubDate>
            <guid>https://dixu.ddns.net/p/vmware-esxi-administration-command-reference/</guid>
            <description>&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://developer.broadcom.com/xapis/esxcli-command-reference/latest/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;ESXCLI Command Reference&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://knowledge.broadcom.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Broadcom Knowledge Base&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;before-you-begin&#34;&gt;Before You Begin&#xA;&lt;/h2&gt;&lt;p&gt;Run these commands directly in the &lt;strong&gt;ESXi Shell&lt;/strong&gt; or an SSH session to the ESXi host, using an account with the necessary privileges. They are not commands for a Linux guest, Windows PowerShell, or the vCenter Server appliance.&lt;/p&gt;&#xA;&lt;p&gt;Use this article as a reference, not as a script to run from top to bottom. Replace example addresses, interface names, and &lt;code&gt;VM_ID&lt;/code&gt; with values from your host. Command availability can vary by ESXi release; check local help before changing settings:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli system version get&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli --help&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli network ip interface ipv4 &lt;span class=&#34;nb&#34;&gt;set&lt;/span&gt; --help&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;vim-cmd &lt;span class=&#34;nb&#34;&gt;help&lt;/span&gt; vmsvc/snapshot.create&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;host-information&#34;&gt;Host Information&#xA;&lt;/h2&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli system version get&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli system hostname get&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli hardware platform get&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli hardware cpu list&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;For an extensive host configuration report:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcfg-info -a&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;network-configuration&#34;&gt;Network Configuration&#xA;&lt;/h2&gt;&lt;h3 id=&#34;inspect-interfaces-and-routes&#34;&gt;Inspect Interfaces and Routes&#xA;&lt;/h3&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli network nic list&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli network nic get --nic-name&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;vmnic0&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli network ip interface list&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli network ip interface ipv4 get&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli network ip route ipv4 list&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;vmnic0&lt;/code&gt; identifies a physical adapter. &lt;code&gt;vmk0&lt;/code&gt; identifies a VMkernel interface. They serve different purposes. The legacy &lt;code&gt;esxcfg-nics -l&lt;/code&gt; command can also list physical adapters. See the &lt;a class=&#34;link&#34; href=&#34;https://developer.broadcom.com/xapis/esxcli-command-reference/latest/namespace/esxcli_network.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;network command reference&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;set-a-static-vmkernel-address&#34;&gt;Set a Static VMkernel Address&#xA;&lt;/h3&gt;&lt;p&gt;Changing the management interface address can disconnect SSH and the Host Client. Have local or out-of-band console access available and record the existing configuration first.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli network ip interface ipv4 &lt;span class=&#34;nb&#34;&gt;set&lt;/span&gt; --interface-name&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;vmk0 --ipv4&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;192.168.1.20 --netmask&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;255.255.255.0 --type&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;static&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This example changes the address and mask of an existing interface. It does not create a port group, configure a VLAN, or update DNS and routing. Verify those separately, especially when moving to another subnet.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli network ip interface ipv4 get --interface-name&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;vmk0&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli network ip route ipv4 list&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;vmkping -I vmk0 192.168.1.1&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Use your actual gateway address for the connectivity check.&lt;/p&gt;&#xA;&lt;h3 id=&#34;disable-or-enable-a-physical-adapter&#34;&gt;Disable or Enable a Physical Adapter&#xA;&lt;/h3&gt;&lt;p&gt;Confirm the adapter&amp;rsquo;s role before changing it. Disabling an uplink can interrupt management, VM traffic, or storage connectivity.&lt;/p&gt;&#xA;&lt;p&gt;Disable the selected adapter:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli network nic down --nic-name&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;vmnic1&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Enable it again:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli network nic up --nic-name&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;vmnic1&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli network nic list&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;These commands replace the original notes&amp;rsquo; &lt;code&gt;esxcfg-nics --enable&lt;/code&gt; and &lt;code&gt;--disable&lt;/code&gt; examples. See Broadcom&amp;rsquo;s &lt;a class=&#34;link&#34; href=&#34;https://knowledge.broadcom.com/external/article/430779/network-adapter-vmnic-shows-as-down-in-v.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;adapter troubleshooting guidance&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;storage-and-datastores&#34;&gt;Storage and Datastores&#xA;&lt;/h2&gt;&lt;h3 id=&#34;inspect-storage&#34;&gt;Inspect Storage&#xA;&lt;/h3&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli storage core adapter list&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli storage core device list&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli storage filesystem list&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli storage nfs list&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli storage nfs41 list&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;mount-an-nfs-3-datastore&#34;&gt;Mount an NFS 3 Datastore&#xA;&lt;/h3&gt;&lt;p&gt;Configure the NFS server&amp;rsquo;s export permissions for the ESXi host first. Replace the server address, exported path, and datastore name:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli storage nfs add --host&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;192.168.1.30 --share&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;/exports/esxi --volume-name&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;nfs-datastore&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli storage nfs list&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli storage filesystem list&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;storage nfs&lt;/code&gt; manages NFS 3; NFS 4.1 uses the separate &lt;code&gt;storage nfs41&lt;/code&gt; namespace. Match the command to the export protocol. See the &lt;a class=&#34;link&#34; href=&#34;https://developer.broadcom.com/xapis/esxcli-command-reference/latest/namespace/esxcli_storage.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;storage command reference&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;virtual-machine-management&#34;&gt;Virtual Machine Management&#xA;&lt;/h2&gt;&lt;h3 id=&#34;find-the-vm-id&#34;&gt;Find the VM ID&#xA;&lt;/h3&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;vim-cmd vmsvc/getallvms&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Identify the correct VM by both its name and datastore path. Replace &lt;code&gt;VM_ID&lt;/code&gt; below with the numeric ID returned by this host.&lt;/p&gt;&#xA;&lt;h3 id=&#34;check-power-state-and-start-a-vm&#34;&gt;Check Power State and Start a VM&#xA;&lt;/h3&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;vim-cmd vmsvc/power.getstate VM_ID&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;vim-cmd vmsvc/power.on VM_ID&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;shut-down-a-guest-gracefully&#34;&gt;Shut Down a Guest Gracefully&#xA;&lt;/h3&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;vim-cmd vmsvc/power.shutdown VM_ID&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;vim-cmd vmsvc/power.getstate VM_ID&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Guest shutdown requires working VMware Tools or open-vm-tools. Allow the guest time to shut down before checking again.&lt;/p&gt;&#xA;&lt;h3 id=&#34;force-a-vm-off&#34;&gt;Force a VM Off&#xA;&lt;/h3&gt;&lt;p&gt;Use this only when an immediate power-off is intended or graceful shutdown has failed. It can lose unsaved guest data:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;vim-cmd vmsvc/power.off VM_ID&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;See Broadcom&amp;rsquo;s &lt;a class=&#34;link&#34; href=&#34;https://knowledge.broadcom.com/external/article?legacyId=1004340&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;VM power troubleshooting procedure&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;snapshots&#34;&gt;Snapshots&#xA;&lt;/h2&gt;&lt;p&gt;Create a snapshot without guest memory and without filesystem quiescing:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;vim-cmd vmsvc/snapshot.create VM_ID &lt;span class=&#34;s2&#34;&gt;&amp;#34;before-maintenance&amp;#34;&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Before configuration changes&amp;#34;&lt;/span&gt; &lt;span class=&#34;m&#34;&gt;0&lt;/span&gt; &lt;span class=&#34;m&#34;&gt;0&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;vim-cmd vmsvc/snapshot.get VM_ID&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The final arguments are &lt;code&gt;includeMemory&lt;/code&gt; and &lt;code&gt;quiesced&lt;/code&gt;. Both are disabled in this example. For a running VM, this does not provide an application-consistent backup. Keep enough datastore space and remove temporary snapshots through normal snapshot management when finished. See the &lt;a class=&#34;link&#34; href=&#34;https://knowledge.broadcom.com/external/article/316575/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;snapshot command guidance&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;unregister-or-delete-a-vm&#34;&gt;Unregister or Delete a VM&#xA;&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;Unregistering&lt;/strong&gt; removes a VM from the host inventory while retaining its files:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;vim-cmd vmsvc/unregister VM_ID&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Destroying&lt;/strong&gt; deletes the VM and its associated files. Verify the VM ID, shut it down, and confirm any required backup before running:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;vim-cmd vmsvc/destroy VM_ID&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Choose the operation you actually intend; do not run both as a sequence. See Broadcom&amp;rsquo;s &lt;a class=&#34;link&#34; href=&#34;https://knowledge.broadcom.com/external/article?legacyId=2012964&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;VM command comparison&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;management-services&#34;&gt;Management Services&#xA;&lt;/h2&gt;&lt;p&gt;Check service status:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/etc/init.d/hostd status&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/etc/init.d/vpxa status&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;hostd&lt;/code&gt; handles local host management; &lt;code&gt;vpxa&lt;/code&gt; connects a managed host to vCenter. A standalone host may not have an active vCenter agent.&lt;/p&gt;&#xA;&lt;p&gt;When troubleshooting an unresponsive management service, restart only the affected service:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/etc/init.d/hostd restart&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Or, for the vCenter agent:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/etc/init.d/vpxa restart&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Expect a temporary management disconnect and possible disruption to active management tasks. Review cluster-specific restrictions for vSAN, NSX, and LACP before proceeding. Broadcom cautions against broad restarts through &lt;code&gt;services.sh restart&lt;/code&gt; or DCUI&amp;rsquo;s management-agent restart in these environments. See &lt;a class=&#34;link&#34; href=&#34;https://knowledge.broadcom.com/external/article/320280/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Restarting management agents&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;local-accounts&#34;&gt;Local Accounts&#xA;&lt;/h2&gt;&lt;p&gt;List local accounts and current shell sessions:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli system account list&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;who&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Create an account using the correct &lt;code&gt;system account&lt;/code&gt; namespace:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli system account add --id&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;operator1 --password&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;REPLACE_WITH_PASSWORD&amp;#39;&lt;/span&gt; --password-confirmation&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;REPLACE_WITH_PASSWORD&amp;#39;&lt;/span&gt; --description&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;Operations user&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Replace both password placeholders with the same strong password. Command-line passwords can be exposed in history or logging; the Host Client provides an alternative for interactive account creation. Creating an account does not automatically assign an administrator role. Configure the required permissions separately. See the &lt;a class=&#34;link&#34; href=&#34;https://developer.broadcom.com/xapis/esxcli-command-reference/latest/namespace/esxcli_system.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;system command reference&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;logs-and-performance&#34;&gt;Logs and Performance&#xA;&lt;/h2&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;tail -n &lt;span class=&#34;m&#34;&gt;100&lt;/span&gt; /var/log/vmkernel.log&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;tail -n &lt;span class=&#34;m&#34;&gt;100&lt;/span&gt; /var/log/hostd.log&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;tail -n &lt;span class=&#34;m&#34;&gt;100&lt;/span&gt; /var/log/vpxa.log&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;tail -f /var/log/vmkernel.log&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Press &lt;code&gt;Ctrl+C&lt;/code&gt; to stop following a log.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxtop&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Use &lt;code&gt;c&lt;/code&gt; for CPU, &lt;code&gt;m&lt;/code&gt; for memory, &lt;code&gt;n&lt;/code&gt; for networking, and &lt;code&gt;q&lt;/code&gt; to quit.&lt;/p&gt;&#xA;&lt;h2 id=&#34;host-maintenance-and-shutdown&#34;&gt;Host Maintenance and Shutdown&#xA;&lt;/h2&gt;&lt;p&gt;Migrate or gracefully shut down the host&amp;rsquo;s VMs before maintenance. For a vSAN cluster, use its maintenance workflow and appropriate data-migration option rather than applying a generic command without reviewing storage impact.&lt;/p&gt;&#xA;&lt;p&gt;Enter maintenance mode and verify its state:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli system maintenanceMode &lt;span class=&#34;nb&#34;&gt;set&lt;/span&gt; --enable&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli system maintenanceMode get&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After maintenance mode is confirmed, choose &lt;strong&gt;one&lt;/strong&gt; action.&lt;/p&gt;&#xA;&lt;p&gt;Reboot:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli system shutdown reboot --delay&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;60&lt;/span&gt; --reason&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;Planned maintenance&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Or power off:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli system shutdown poweroff --delay&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;60&lt;/span&gt; --reason&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;Planned shutdown&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After the host returns and checks are complete, exit maintenance mode:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;esxcli system maintenanceMode &lt;span class=&#34;nb&#34;&gt;set&lt;/span&gt; --enable&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;false&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The ESXCLI shutdown commands require maintenance mode. See the &lt;a class=&#34;link&#34; href=&#34;https://developer.broadcom.com/xapis/esxcli-command-reference/latest/namespace/esxcli_system.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;system command reference&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;direct-console-interface&#34;&gt;Direct Console Interface&#xA;&lt;/h2&gt;&lt;p&gt;From a supported interactive ESXi shell session:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;dcui&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The physical or out-of-band console remains useful when a network change disconnects SSH. Disable temporary ESXi Shell or SSH access when troubleshooting is complete, according to your host access policy.&lt;/p&gt;&#xA;</description>
        </item></channel>
</rss>
