cancel
Showing results for 
Search instead for 
Did you mean: 

Query Question

Hi, another question.  I have this in a query:

where="(where(and(doesNotHaveTag EPOLeafNode.AppliedTags 17)(doesNotHaveTag EPOLeafNode.AppliedTags 18)(hasTag EPOLeafNode.AppliedTags 162)))"

It works fine returning machines with the Tag ID of 162 and NOT either tag of 17 or 18.  I would also like to change the where statement to include machines with tag 162 or 163. I cant seem to get the syntax correct. So (exclude machines with tags 17 or 18) and (have tag 162 or 163)

Thanks  

1 Reply
jking
Level 10
Report Inappropriate Content
Message 2 of 2

Re: Query Question

Try this...

where="

(where

    (and

        (doesNotHaveTag EPOLeafNode.AppliedTags 17)

        (doesNotHaveTag EPOLeafNode.AppliedTags 18)

        (or

            (hasTag EPOLeafNode.AppliedTags 162)

            (hasTag EPOLeafNode.AppliedTags 163)

        )

    )

)"

Except no white space etc. 

More McAfee Tools to Help You

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community