Use Advanced mode to create a query for virtual machine selection
You can use the Query builder to enter rules for the automatic selection of VMware virtual machines for backup.
The Query builder's Advanced mode provides more flexibility in crafting rules for virtual machine selection, including the use of parentheses for grouping.
Note:
In the NetBackup web UI, you must use OData keywords and OData operators in query rules:
To use Advanced mode to create a query for virtual machine selection
- Set up a VMware policy and specify a VMware backup host or backup media server.
For assistance, you can refer to the first few steps of the following procedure:
- Select the Clients tab.
- Select Select automatically through VMware intelligent policy query.
- Locate Query builder and select Advanced mode.
- You can use the Query builder menus to add query rules. You can also type in rules manually.
Here are some example queries:
VMFolder Contains "mango"
Datastore StartsWith "Acc" OR Datastore StartsWith "Prod"
vCenter Contains "ROS" AND ESXserver Equal "VM_test1" AND Powerstate Equal poweredOn
- To insert a rule between existing rules, place the cursor where you want the new rule to start and type it in.
When you create a rule with the drown-down menus, it appears at the end of the query. You can cut and paste it into the proper location.
- To establish the proper order of evaluation in compound queries, use parentheses to group rules as needed. Compound queries contain two or more rules, joined by: and, and not, or, or not.