VMware Cloud Community
TonyJK
Enthusiast
Enthusiast

vicfg-cfgbackup Error

Hi,

We just get one ESX 4.1 Host upgraded to ESXi 5 Host.  And vCenter Server is already running Release 5.

I have installed vCLI on the vCenter Server.

1) When I attempt to make backup by using vicfg-cfgbackup, I am being asked for username / password.  Just wonder what ussername and password should I enter (ESXi Host or vCenter Server) ?

C:\Program Files (x86)\VMware\VMware vSphere CLI>vicfg-cfgbackup.pl --server 192.168.200.111 --username root --password Mypassword -s D:\ProgramData\VMware\Configuration\ESXi5.bak

Enter username:

2) If I enter the username and password of vCenter Server, I get the following error message

The --vihost option must be specified when connecting to vCenter.

Is there anything wrong with the syntax being used ?  Your advice is sought.

Thanks

PS: I have already turned on SSH for that ESXi 5 Host

Message was edited by: TonyJK

Tags (1)
Reply
0 Kudos
2 Replies
aravinds3107
Virtuoso
Virtuoso

Just wonder what ussername and password should I enter (ESXi Host or vCenter Server)

You have to provide the ESXi host details and ESXi Host Login credentials

--vihost option must be specified when connecting to vCenter

Are you connecting to ESXi host or vCenter? if vCenter replace the IP of an host and try

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful |Blog: http://aravindsivaraman.com/ | Twitter : ss_aravind
TonyJK
Enthusiast
Enthusiast

Hi,

Thanks for your advice.

When I change the IP address to Host Name, backup task is run properly.  Quite weird !

C:\Program Files (x86)\VMware\VMware vSphere CLI>vicfg-cfgbackup.pl --server 192.168.200.111 --username root --password Mypassword -s D:\ProgramData\VMware\Configuration\ESXi5.bak

Changed to

C:\Program Files (x86)\VMware\VMware vSphere CLI>vicfg-cfgbackup.pl --server ESXi5 --username root --password Mypassword -s D:\ProgramData\VMware\Configuration\ESXi5.bak

Username and Password are for ESXi Host !

Reply
0 Kudos