Adding ESX server credentials to NetBackup may fail with “VMware credential validation failed – status 1”

While adding ESX Credentials validation fails with VMware credential validation failed as it does not find a matching name.

Error Message
The error in the NetBackup Administrator console will be as below:
Vmware credential validation failed. Unable to match host name, expecting localhost

Login to the VCenter server and highlight the ESX host. Then click on TCP/IP configuration under Networking.

Click Edit for Default under TCP/IP stack.

Add the domain name only.

It can be done using command line as well, run the following command on the ESX host:

# esxcli system hostname set –domain=

Once the command is executed then try to add the ESXi Credentials.