Dear Members!
Please take a look and try to advise in the following situation:
I have my ESXi I can connect via POWERCli or CMD but can not backup it.
None of the solutions works what I found on the Internet:
via PowerCLI:
PowerCLI C:\> Get-VMHostFirmware -vmhost 192.168.99.2 -BackupConfiguration -DestinationPath c:\
Get-VMHostFirmware : 3/5/2019 3:14:41 PM Get-VMHostFirmware An exception occurred during a WebClient request.
At line:1 char:1
+ Get-VMHostFirmware -vmhost 192.168.99.2 -BackupConfiguration -Destina ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-VMHostFirmware], ViError
+ FullyQualifiedErrorId : Client20_SystemManagementServiceImpl_BackupVmHostFirmware_DownloadError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.GetVMHostFirmware
PowerCLI C:\>
via CMD:
C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-cfgbackup.pl --server -s 192.168.99.2 ESXibackup.tgz
Enter username: root
Enter password:
Server version unavailable at 'https://localhost:443/sdk/vimService.wsdl' at C:/Program Files (x86)/VMware/VMware vSphere CLI/Perl/lib/VMware/VICommon.pm line 726, <STDIN> line 2.
C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>
So, what I had to do: (for others who's having the same issue:)
update PowerCLI via PowerShell:
Install-Module -Name VMware.PowerCLI
set InvalidCertification skip:
Set-PowerCLIConfiguration -InvalidCertificateAction ignore -confirm:$false
Connect:
Connect-VIServer 192.168.99.2
Backup to folder:
Get-VMHostFirmware -vmhost 192.168.99.2 -BackupConfiguration -DestinationPath c:\Temp
now it's working.
Which ESXi, PowerCLI, and vCLI version/build do you use?
On what host OS (version/build) do you run these commands?
André
Dear a.p.
PowerCLI
vSphereCLI
ESXi's are:
and:
none of them are working.
You are running very old versions.
The installed PowerCLI version doesn't support ESXi 6.5 Update 1
see VMware Product Interoperability Matrices
André
So, what I had to do: (for others who's having the same issue:)
update PowerCLI via PowerShell:
Install-Module -Name VMware.PowerCLI
set InvalidCertification skip:
Set-PowerCLIConfiguration -InvalidCertificateAction ignore -confirm:$false
Connect:
Connect-VIServer 192.168.99.2
Backup to folder:
Get-VMHostFirmware -vmhost 192.168.99.2 -BackupConfiguration -DestinationPath c:\Temp
now it's working.