cancel
Showing results for 
Search instead for 
Did you mean: 

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

rk1074
Level 6
Partner

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?

1 ACCEPTED SOLUTION

Accepted Solutions

SymTerry
Level 6
Employee Accredited

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? 

View solution in original post

3 REPLIES 3

SymTerry
Level 6
Employee Accredited

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? 

Nicolai
Moderator
Moderator
Partner    VIP   

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

rk1074
Level 6
Partner

Thanks Terry and Nicolai