Backup ESXi firmware (configuration) with PowerCLI

Login directly to ESXi (or through vCenter server) with PowerCLI shell:
   Connect-VIserver -Server IP_address
See help from cmdlet Set-VMHostFirmware:
   Get-Help Set-VMHostFirmware
No more PERL scripts and nothing else...just PowerCLI and go...
For restore procedure you must put ESXi host into MAINTENANCE mode.
Example:
BACKUP:
Set-VMHostFirmware -VMHost esxi_IP_address -BackupConfiguration -DestinationPath C:\ -Server vCenter_IP_address

RESTORE:
Set-VMHostFirmware -VMHost esxi_IP_address -Restore -SourcePath C:\ -HostUser -HostPassword -Server vCenter_IP_address

Comments

Popular posts from this blog

NSX ALB LetsEncrypt with DNS-01 challenge - BIND example

VMware SD WAN - multiple locations - LAN IP address space overlapping with NAT

NSX-T Layer 2 bridging - scenarios & use cases