cancel
Showing results for 
Search instead for 
Did you mean: 

Exclude a VM from Auto VIP query when using VMFolder?

Anonymous
Not applicable

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)

1 ACCEPTED SOLUTION

Accepted Solutions

sdo
Moderator
Moderator
Partner    VIP    Certified

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" )

View solution in original post

6 REPLIES 6

Will_Restore
Level 6

Maybe rearrange the elements?

NOT Displayname Equal "SP2010DEV1"

AND VMFolder Contains "vm\Sharepoint\DEV"

OR VMFolder Contains "vm\Sharepoint\PROD"

 

mansoor_sheik
Level 6
Certified

Ensure the VM name is exact. you can use "contains" as operator.

 

 

 

Anonymous
Not applicable

@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.)

sdo
Moderator
Moderator
Partner    VIP    Certified

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" )

sdo
Moderator
Moderator
Partner    VIP    Certified

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
Not applicable

@sdo

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

Thanks