FYI i was able to find a way to do this. I used these functions in individual DAP entries to solve my problem:
assert(function()
for k,v in pairs(endpoint.pfw) do
if (EVAL(v.enabled, "EQ", "ok", "string"))
then
return false
end
end
return CheckAndMsg(true, "Please enable firewall before connecting.", nil)
end)()
assert(function()
for k,v in pairs(endpoint.am) do
if(EVAL(v.activescan, "EQ", "ok", "string")and EVAL (v.lastupdate, "LT", "2592000", "integer"))
then
return false
end
end
return CheckAndMsg(true, "Please install antimalware software before connecting.", nil)
end)()