Forum Discussion

Anonymous's avatar
Anonymous
10 years ago
Solved

Exclude a VM from Auto VIP query when using VMFolder?

Query exists

VMFolder Contains "vm\Sharepoint\DEV"

OR VMFolder Contains "vm\Sharepoint\PROD"

AND NOT Displayname Equal "SP2010DEV1"

 

From above I am backing up ALL VM's found in vSphere Folders with the above naming structure.

I would like to however exclude a VM that is named SP2010DEV1 that is found in one of these folders.

My syntax above when tested INCLUDES the one I want excluded. :-(

Is this possible? Or can you provide better syntax query thanks.

 

(Of course I could get the VMWARE Admin to move the VM in question outside of that folder structure.. but want the Backup Admin to be able to do this as a one off if a problem exists with failing 156 backups of this VM.)

 

Or conversely, can I exclude a specific VM from being quiesced within a NetBackup Policy.? As VSS is the problem the VM fails. The VSS issue is being addressed but taking long time.

Thanks

 

(Using NetBackup 7.6.1)

  • Is it possible to use parentheses in a VIP query?    e.g:

    ( VMFolder Contains "vm\Sharepoint\DEV" OR VMFolder Contains "vm\Sharepoint\PROD" ) AND ( NOT Displayname Equal "SP2010DEV1" )

6 Replies

  • Maybe rearrange the elements?

    NOT Displayname Equal "SP2010DEV1"

    AND VMFolder Contains "vm\Sharepoint\DEV"

    OR VMFolder Contains "vm\Sharepoint\PROD"

     

  • Anonymous's avatar
    Anonymous

    @Will restore

    Tried your option and still VM is included.

    @mansoor

    VM Name is exact as its taken from the Value selection field which is a choice of VM Displaynames.

     

    (Use Competitor C solution at other site and this is so easy to achieve.)

  • Is it possible to use parentheses in a VIP query?    e.g:

    ( VMFolder Contains "vm\Sharepoint\DEV" OR VMFolder Contains "vm\Sharepoint\PROD" ) AND ( NOT Displayname Equal "SP2010DEV1" )

  • Or... (excuse the pun)... it could be that 'AND' operators have higher precedence and (excuse the second pun) are evaluated first... so this might work:

    VMFolder Contains "vm\Sharepoint\DEV"

    AND NOT Displayname Equal "SP2010DEV1"

    OR VMFolder Contains "vm\Sharepoint\PROD"

    AND NOT Displayname Equal "SP2010DEV1"

  • Anonymous's avatar
    Anonymous

    @sdo

    SUCCESS in both instances. The paranetheses method of course much easier to use.

    Thanks