Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. NetBackup™ for VMware Administrator's Guide
  3. Appendix A. NetBackup commands to back up and restore virtual machines
  4. Using NetBackup commands to create a VMware policy
  5. bpplinclude options for modifying query rules in a VMware policy
NetBackup™ for VMware Administrator's Guide

bpplinclude options for modifying query rules in a VMware policy

The bpplinclude command has options for modifying the query rules in an existing policy.

Table: bpplinclude options for modifying query rules

Option

Description

-addtoquery query_string ...

Adds the specified query string to the end of the policy query rules, or creates a query if none exists.

Quotes (") must be escaped (\).

Examples:

To add vm17 to the list of values in the query rules of policy1:

bpplinclude policy1 -addtoquery ,\"vm17\"

To create a query in a policy that does not have a query:

bpplinclude policy1 -addtoquery vmware:/?filter=Displayname AnyOf \"grayfox7\",\"grayfox9\"

Note:

Each quote (") is escaped with a backslash (\).

-addtoquery -f file_name

Adds the entries to the query rules from the specified file, or creates a query if none exists.

In the file, quotes (") do not need to be escaped.

Example:

To create a query in a policy that does not have a query:

bpplinclude policy1 -addtoquery -f qfile1

where the contents of qfile1 are:

vmware:/?filter=vCenter Contains "ROS" AND ESXserver Equal "VM_test1" AND Powerstate Equal poweredOn

Note:

The values "ROS" and "VM_test1" are not escaped.

Note:

You can place entries on multiple lines in the file. All entries are added to the end of the query (if a query already exists).

-deletefromquery query_string ...

Deletes the specified query string from the policy query rules.

Examples:

To delete vm27 from the list of values in the query rule of policy1:

bpplinclude policy1 -deletefromquery \"vm27\"

This example also deletes the comma preceding vm27 if such a comma exists in the query rules.

Note:

The -deletefromquery option deletes a comma if: the phrase in the query_string does not begin or end with a comma and the character preceding the deleted string is a comma.

To delete an entire query from the policy:

bpplinclude policy1 -deletefromquery vmware:/?filter=Displayname AnyOf "grayfox7","grayfox9"

-deletefromquery -f file_name

Deletes the file entries from the query rules.

Example:

To delete a query from a policy:

bpplinclude policy1 -deletefromquery -f qfile1

where the contents of qfile1 are:

vmware:/?filter=vCenter Contains "ROS" AND ESXserver Equal "VM_test1" AND Powerstate Equal poweredOn

Note:

The values "ROS" and "VM_test1" are not escaped.

Note: paths that contain wildcards must be enclosed in quotes.

Feedback

Was this page helpful?
Previous

VMware policy: bpplinfo options and keywords

Next

Using the nbdiscover command to search the virtual environment

Feedback

Was this page helpful?