I need to know the name of the field that contains the server 's name, I already have the QID piece....actually a complete list of all fields would be helpful for futher groovy scripting...
I think it is asset.hostname
So use something like:
if(asset.getAssetType()!=Asset.AssetType.HOST) return false;
I do not have a complete list, it's subject to change unfortunately.
There has to be some kind of repository of fields somewhere. How would anyone know what fields to replace when it changes? I want to use the groovy scriptlets for tagging but I don't have a clue what the fields are and I can't seem to find anything here or outside of the Qualys community.
Retrieving data ...