O R G A N I C / F E R T I L I Z E R: faq: how do i retrieve objects that do not match a criteria?

Mar 19, 2010

faq: how do i retrieve objects that do not match a criteria?

question

“i’m trying to build a collection on an ou that looks to see if the scom agent is installed?  i’ve tried the simple value add remove programs with product id as well as display name.  if it’s set to equals it will collect only machines that have scom installed.  as soon as i switch it to “not equals”, everything shows up, both servers with and without the scom install.  same basic principal is true when i tried to do it with attribute class software files.

what would be the best way to sort the collection so only machines without scom agents get discovered?”

 

answer

the quick answer is to use a subselect query.  i never bothered to blog this myself since it was covered quite well and quite in depth by other bloggers.  i’ve listed one of my favorite articles below.  the second link is just an example of how to further use this concept.