Forum Discussion

rk1074's avatar
rk1074
Level 6
10 years ago

is there any command equivalent to the automatic query which run for VM backup section in VIP backup policy

Hello all, We are looking for command which can perform the same task as the automatic query  do in VIP backup policy. Means, can we get the VM hostnames by running the query from cli of master se...
  • SymTerry's avatar
    10 years ago

    HOWTO92097 is the doc for Using NetBackup commands to create a VMware policy. In there, is this command to Select the virtual machines to back up:

    • To automatically select virtual machines through a query rule (for example):

      bpplclients pol1 -add MEDIA_SERVER VMware VMware
      bpplinclude pol1 -add "vmware:/?filter= Displayname Contains 
      'prvm'"

      MEDIA_SERVER allows NetBackup to use a media server to discover and select the virtual machines. As an alternative, you can use -add to specify a particular discovery host.

      In the bpplinclude example, the query rule "vmware:/?filter= Displayname Contains 'prvm'" selects the virtual machines with the display names that containprvm. (Other characters can also appear in the display names.)

    Is that what your looking for?