Travelling Techie

Adventures in VMware

User Tools

Site Tools


Sidebar

Network Virtualization
Compute Virtualization
Storage Virtualization
Cloud
Containers
Operating Systems
Automation
Tools
VMware Classes
Other Classes
Other

Tags

Recent Changes

About The Author

Brandon Neill is a VMware Certified Instructor and Consultant. He specializes in NSX and vRealize Automation. In addition to teaching Official VMware Classes, he provides contract training and consulting services.

esxi_configuration_management

ESXi Configuration Mangement

There are several possible methods for managing the configs of an ESXi host. The most advanced of which is using Host Profiles. However we can also manage backup and restoration of configs from the command line, and that could be built in to git or a diff script to manage configuration drift.

See https://kb.vmware.com/s/article/2042141 for detailed information. PowerCLI

# Get-VMHostFirmware -VMHost ESXi_host_IP_address -BackupConfiguration -DestinationPath output_directory

# Set-VMHost -VMHost ESXi_host_IP_address -State 'Maintenance'
# Set-VMHostFirmware -VMHost ESXi_host_IP_address -Restore -SourcePath backup_file -HostUser username -HostPassword password 

vSphere CLI

# vicfg-cfgbackup.pl --server=ESXi_host_IP_address --username=root -s output_file_name

# vicfg-cfgbackup.pl --server=ESXi_host_IP_address --username=root -l backup_file
esxi_configuration_management.txt · Last modified: 2019/12/17 13:54 by brandon