When managing ESXi 8.0 or 9.0 hosts within a vCenter cluster, you observe the following:
Error accessing netstack instance defaultTcpipStack, error: 2'esxcli system hostname get' fetches the expected hostname details.https://<ESXi FQDN>/mob/?moid=ha-searchindex&method=findByDnsName fetches 'void'. (Login as root user)vCenter 9.x
ESXI host
This issue occurs when the defaultTcpipStack is disabled within the ESXi ConfigStore. When a host exits maintenance mode, vCenter performs a host sync; however, if the netstack is inactive, the configuration data is not synchronized to the vCenter inventory, resulting in empty fields in the UI.
To resolve this issue, you must manually enable the default netstack in the ESXi ConfigStore.
This command will make changes to your system. Review it carefully before running.
configstorecli config current get -c esx -g network -k net_stacks > /tmp/net_stacks.json/tmp/net_stacks.json using a text editor (e.g., vi) and locate the defaultTcpipStack entry."enabled": false value to "enabled": true.configstorecli config current set -c esx -g network -k net_stacks -infile /tmp/net_stacks.json/etc/init.d/hostd restartconfigstorecli config current get -c esx -g network -k net_stacksBelow will be the expected output when the default netstack is disabled :[ { "dns": { "name_server": [ "#.#.#.#" ], "system_search_domain": [] }, "enabled": false , "host_name": "hostname_esxi", "key": "defaultTcpipStack", "name": "defaultTcpipStack", "routing_config": { "ipv4_default_gateway": "#.#.#.#", "ipv4_effect_default_gateway": "#.#.#.#", "source": "MANUAL" } },