Posts

Showing posts with the label vsphere

Backup and Restore VM Host

Image
To back up ESXi configuration: Run the following command to sync the configuration: vim-cmd hostsvc/firmware/sync_config Run the following command to generate a backup file:  vim-cmd hostsvc/firmware/backup_config Download the configuration file by going to the URL in the output. (Replace * in the URL with the IP address.) If unable to download the config file through the browser, it can be found in  /scratch/downloads/<<GUID from output in step b>>/configBundle-hostname.local.tgz . Use WinSCP to transfer the file from ESXi to the local machine or copy it to a datastore Restore configuration back to ESXi host: Make sure the same ESXi build from which the backup was taken is installed back onto the host. Copy the backup file back to the ESXi host. Use WinSCP to copy the config file back to the host  /tmp  directory. Rename the file from  configBundle-<host name>.tgz  to  configBundle.tgz . Example: cp configBundle-esxi7001.vmlab.local....

vSphere Diagnostic Tool

Image
vSphere Diagnostic Tool https://techmyth.blog/en/posts/vsphere-diag-tool/ This time I am going to show you how to use the  vSphere Diagnostic Tool , this tool is used to perform diagnostic checks on the VMware vCenter Server Appliance. This tool consists of a python script that executes diagnostic commands to validate the health status of the vCenter service. Note: As a minimum requirement it is required to have a version of vCenter Server 6.5 or higher This tool performs the following validations: vCenter Basic Info Lookup Service Check AD Check vCenter Certificate Check Core File Check Disk Check vCenter DNS Check vCenter NTP Check vCenter Port Check Root Account Check vCenter Services Check VCHA Check Here is the link so you can see the features of this tool. https://flings.vmware.com/vsphere-diagnostic-tool#summary The first step would be to download the tool from the portal of  VMware Fling After downloading the file it is required to copy it to the vCenter server. In my ...

vCenter service status

  vAPI Endpoint service-control --stop vmware-vapi-endpoint service-control --start vmware-vapi-endpoint service-control --status vmware-vapi-endpoint

vCenter shorecut

  https://vcenter/vapiendpoint/health