AnsweredAssumed Answered

Groovy Script Question

Question asked by Kevin Ryan on Mar 19, 2019
Latest reply on Mar 20, 2019 by Kevin Ryan

Good Day, 


Looking for some guidance.  I need want to use groovy script to  TAG any assets that have Software installed "IBM Bigfix Client"   or any assets that have QID 90129L   (QID that checks for bigfix) 


This is the script I came up with, but honestly I am a rookie ! any tips or guidance  appreciated 


if(asset.getAssetType()!=Asset.AssetType.HOST) return false;
return asset.hasSoftwareByName("IBM BigFix Client") || asset.resultsForQid(90129L)