02-24-2015 08:37 AM
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 server of discovery host?
Solved! Go to Solution.
02-24-2015 10:10 AM
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?
02-24-2015 10:10 AM
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?
02-24-2015 01:45 PM
Yes - the command is called nbdiscover. Technotes below provide some exampels.
Using the nbdiscover command to search the virtual environment
http://www.symantec.com/docs/HOWTO92138
nbdiscover
http://www.symantec.com/docs/HOWTO105181
02-25-2015 10:18 AM
Thanks Terry and Nicolai