VMware Cloud Community
josemanuelfuent
Contributor
Contributor

Looking for an API that allows me to get all the configuration of VMs on a blade running ESXi to compare them using a unix like tool (such as diff) to easily verify deltas among them (ip Addresses, HD parameters, etc)

I am new to VMware and I am working on a project where team mates deployed manually using vSphere, I am weary of the human factor and I want to compare the configuration via a diff like tool in a 3rd machine, I need to easily download all config (Via API) or simply generating a text file I can compare.

Thanks!

Tags (2)
Reply
0 Kudos
1 Reply
josemanuelfuent
Contributor
Contributor

just looking over vsphere power cli documentation I notice one can backup the config and by looking at the command is a text file:

Backing Up Configuration Data

You can back up configuration data by running vicfg-cfgbackup with the -s option.

vicfg-cfgbackup <conn_options> -s /tmp/ESXi_181842_backup.txt

For the backup filename, include the number of the build that is running on the host that you are backing up. If you are running vCLI on vMA, the backup file is saved locally on vMA. Backup files can safely be stored locally because virtual appliances are stored in the /vmfs/volumes/<datastore> directory on the host, which is separate from the ESXi image and configuration files.

Assuming this backs up all config from a ESXi then I shold be able to compare VMs hosted within and system or even against other blades running ESXi, correct?

Again the goal is make sure VMs are configured identical, except for identification parameters.

Any hints to tell me I am in the right direction, or someone who has run into same need please let me know.

Thanks!

Reply
0 Kudos