Hi,
Please ssh to ESXi host.
vim-cmd hostsvc/firmware/backup_config
You'll find the file in /scratch/downloads/
Later, when you need to restore the settings, copy the file to any location on esxi (like /tmp/backup/)
vim-cmd hostsvc/firmware/restore_config /tmp/backup/<filename>
Thanks,
Ram.