Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/vmguru.com/public_html/wp-content/plugins/amp-plugin-filter/amp-plugin-filter.php on line 24

Warning: Illegal string offset 'width' in /home/customer/www/vmguru.com/public_html/wp-content/plugins/amp-plugin-filter/amp-plugin-filter.php on line 28

Warning: Illegal string offset 'height' in /home/customer/www/vmguru.com/public_html/wp-content/plugins/amp-plugin-filter/amp-plugin-filter.php on line 28

Warning: Illegal string offset 'width' in /home/customer/www/vmguru.com/public_html/wp-content/plugins/amp-plugin-filter/amp-plugin-filter.php on line 28
Track infrastructure changes with vRealize Automation Data Collection

Track infrastructure changes with vRealize Automation Data Collection

vRealize Automation Data Collection is the process where it connects to its infrastructure source endpoints and their compute resources to collect all kinds of information. Within vRealize Automation there are different data collection types:

Data collection occurs at regular intervals. Each type of data collection has a default interval that you can override or modify to suit your needs.

But data collection can also be started manually from the vRealize Automation Console. IaaS administrators can manually initiate data collection for infrastructure source endpoints and fabric administrators can manually initiate data collection for compute resources. Just go to ‘Infrastructure’, select ‘Compute Resources‘, hover over the resource you want to run a data collection on, select ‘Data Collection‘ and select request on the item which needs a refresh.

But what does it do exactly? Last week I got an interesting question from a customer. A colleague had just done a presentation of
all things new in vSphere 6, which also includes all vMotion enhancements. Their question was, ‘What if vMotion moves virtual machines to different hosts, networks, clusters, vCenters. Is vRealize Automation able to track these changes?

Good question! But I had no conclusive answer other than ‘I think the vRealize Automation Data Collection takes care of that. But I will find that out for you‘.

As there is no real documentation on this, there’s only one option. Try it! So I did.

Change in resources (CPU, memory, disk, network)

When using vRealize Automation this is the front-end for doing infrastructure changes. Mainly because the nice self-service portal and integrations with third party solutions like CMDB, Infoblox, ServiceNow, etc. But it happens that for some reason an administrator makes changes using the vSphere client. Like number of CPU’s, amount of memory, connected network, disk sizes.

First I deployed a virtual machine with the specifications below.

Compute: 1 vCPU, 4GB of RAM.

Storage: 50GB on two volumes (40GB, 10GB).

Network: Connected to VM Network.

Then I changed these settings in the vSphere Web Client to the configuration below.

After running the Data Collection, the same virtual machine in vRealize Automation looks like below.

Compute: 4 vCPU, 16GB of RAM.

Storage: 100GB on two volumes (80GB, 20GB).

Network: Connected to DP_MGT.

So, resource changes are detected by the Data Collector which reports the correct values back to vRealize Automation.

Change in location (Storage vMotion)

Compute resources are grouped in a cluster and the cluster is added to vRealize Automation through fabric groups and reservations. But storage is handles through storage reservations. What if I do a storage vMotion to another datastore in the same reservation? Let’s try to move our virtual machine from the ‘ComputeDS07‘ datastore to another datastore.

We will move the virtual machine to the ‘ComputeDS10‘ datastore.

After running the Data Collection, the virtual machine’s storage path in vRealize Automation is updated to the new location.

Remove/add from inventory (same name/location)

Let’s make it a bit more complicated. When I remove a virtual machine from the vSphere inventory and run a data collection, it is reported as ‘Missing‘.

What if I register the virtual machine again and use the same name and location?

After power on the following question pops up because of the re-registration. Answer ‘I Copied It‘.

After running the Data Collection, the virtual machine’s is detected again and available as an item in vRealize Automation.

Remove/add from inventory (different name/location)

Let raise the bar another bit. What will happen when I remove a virtual machine from the vSphere inventory and run a data collection, and register the virtual machine again but now we use a different name and location?

The new name is ‘WIN-073-NEW‘ and the new location is the ‘VRM‘ folder.

After power on the following question pops up because of the re-registration. Answer ‘I Copied It‘.

After running the Data Collection, the virtual machine’s is detected again and available as an item in vRealize Automation. But strangely enough the name change does not come through.

Trying to get the virtual machine registered under its new name I also changed the NetBIOS name of the virtual machine.

After running another Data Collection, the virtual machine’s is finally showing its new name in the vRealize Automation console and it is ready to use.

The vRealize Automation Data Collection is a simple but very efficient process which keeps the information in vSphere and vRealize Automation in sync. A bulletproof system to guard you from administrators who bypass vRealize Automation to perform second day operations.

Note: Although Data Collection keeps vSphere and vRealize Automation in sync, it does not handle any updates to third party systems which are connected vRealize Automation, like CMDB-updates configured on stubs within the blueprint deployment.

Related posts

Automation is not difficult with vRealize Automation 7

by Erik Scholten
8 years ago

Microsoft SQL 2014 Licensing in a VMware environment

by Edwin Weijdema
9 years ago

How to deliver Database-as-a-Service with vRealize Automation

by Erik Scholten
7 years ago
Exit mobile version