AnsweredAssumed Answered

Dynamic Asset Tag via Installed Software Version?

Question asked by Jake VanMast on Jun 12, 2018
Latest reply on Jun 14, 2018 by Jake VanMast

Is there any mechanism to create a Dynamic Asset Tag using an installed software name (sub)string and version (sub)string combo?  This seems to be pretty basic functionality that users would require, so probably I'm just looking in the wrong documentation.  Looking for any tips or pointers to documentation in this area.


AssetView provides a mechanism to tag based upon single criteria such as "software installed" name (although no way to "and"/"or" criteria together), and seemingly no way to specify a "software version" value.


There does not seem to be a way to specify installed software criteria in an Asset Search to save and reuse for tagging (eg in <TAG_CRITERIA>)


Additionally I see examples on how to do this via Groovy scripting (below), however there seems to be no documentation of the procedures/methods offered by the supporting Qualys libraries, and no examples on how to filter by version strings.


if(asset.getAssetType()!=Asset.AssetType.HOST) return false;
return asset.hasSoftwareByName("XYZ")