VMware-vSphere-CLI commands for backup of esxi host configurations

D_wathi used Ask the Experts™
Dear Experts:

Have installed VMware-vSphere-CLI-5.0.0 on windows 7 pro laptop now would like to take the Esxi host configurations backup for the Esxi host and Vcenter as a appliance.

when execute the below command iam getting an error

C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-cfgbackup.pl 192.168.
Enter username: root
Enter password:
Error connecting to server at 'https://localhost/sdk/webService': Perhaps host i
s not a vCenter or ESX server

my esxi host ip is and vcenter ip is

please provide me the command syntax for the backup.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®


C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-cfgbackup.pl --server -s esxihostbackup
Enter username: root
Enter password:
Saving firmware configuration to esxihostbackup ...

able to take backup of Esxi host with the above.

how to takebackup of vcenter host

1. is it recommended to take the back of vcenter instead of Esxi host or taking the Esxi host backup is receommended, please suggest
how to take vcenter backup
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
you cannot take a backup of the vCenter host, you can only backup and restore the configuration of the ESXi host server.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial