For importing the VMware Folder structure into Service Builder.
This community cartridge achieves this through a rule.
https://www.quest.com/community/products/foglight/f/virtualization-storage/15572/vfoglight-services-vmware-folders/
Note: Community Cartridges are not supported by Quest. Please reach out to communities for further support on these cartridges.
For importing a single VMware Folder into Service Builder.
- Start by going to the “Service Builder” dashboard.
- Create a New Category by clicking on the plus sign.
- Fill out the general information about the service and click “Finish”
- Now that this category is created, you can add items to this service by clicking on the plus sign on the “Actions” column then clicking on “Add components to this service”.
- From the following dialog, click on the second link “Create a rule to include a group of components”. This will allow the service to add or remove components based on changes in the VMWare Folder.
- From the following dialog, expand “VMware”, select “VMware Virtual Machines”, and give your rule a Name.
- In this same dialog pick the Input Component as VMware > VMware Virtual Machines, then define the Rule Condition.
The following example is based on a VMware Folder named “Shared Infrastructure”:
$object in (VFolder where name = "Shared Infrastructure").children.entity
The query above only retrieves a single level of a VFolder, for more levels the query must be modified.
For two levels:
$object in (VFolder where name = "Shared Infrastructure" or parent.name = "Shared Infrastructure" ).children.entity
For three levels:
$object in (VFolder where name = "Shared Infrastructure" or parent.name = "Shared Infrastructure" or parent.parent.name = "Shared Infrastructure" ).children.entity
For importing VMware Virtual Machines based on Custom Attributes into Service Builder.
Use the procedure above for creating the Service by using a rule, but use the following Rule Condition example:
$object in (VMWCustomAttribute where name = "CreatedBy" and value like "Whatever%").parent
The query above should retrieve any VMware Custom Attributes that are named "CreatedBy" and have a value that begins with the string "Whatever".