- Obtain the DNS names of virtual machines to be imported from the vCenter.
- In a text file, add the virtual machine names, and save the file on the ETL Engine Server where the ETL runs:
- On the first line, add the following declaration statement:
- On the subsequent lines, add the virtual machine names in one of the following ways:
- Add the DNS names.
- Add a regular expression. The DNS names of virtual machines that match the pattern in the regular expression are included while importing.
- In the Use file at path box, specify the path to this text file.
- After you run the ETL, verify that only the specified virtual machines are imported in the hierarchy.
This filter is applied only on the virtual machines. It does not affect importing of other entities, such as virtual hosts, clusters, and datastores.
Example 1 (Specifying DNS names)
To import virtual machines vm_1, vm_2, and vm_3, add their DNS names to the whitelist file as follows:
Individual host names of the virtual machines in the whitelist filters are case sensitive.
After you run the ETL, these virtual machines along with other entities are imported.
Example 2 (Using a regular expression)
To import the virtual machines for which the name starts with vl, use the following regular expression:
After you run the ETL, all the virtual machines for which the DNS name starts with vl will be imported. For example, vl-pun-023.orgname.com and vl-pun-024.orgname.com
To import virtual machine names in any case, use this regular expression: ^(?i)vl\-[a-z]*\-[0-9]*\.orgname\.com
Example 3 (Using a regular expression)
To import all the virtual machines that do not include the text _backup_ in the virtual machine name. The regular expression can use an inverted or negative expression to monitor only the virtual machines that do not contain the provided text.