I am trying to get BigFix to change the value of a client setting from a N to a Y on a specific day of the week, in this case Patch Tuesday. I am testing using today for testing purposes, but I believe I am missing a critical piece.
Thoughts?
if (first tuesday of current month_and_year) + 21*day then setting “Patch”=“Y” on “{{parameter “action issue date” of action}” for client
The ‘if’ statement expe ts to evaluate a relevance clause to a true/false - and that piece of relevance needs its own curly brackets. In the 'setting" command, we do want the ‘effective date’ to be evaluated as relevance, so we need one curly open bracket, not two. Two open brackets are used to ‘escape’ the open curly bracket, when you want to use the literal ‘{’ as part of a value or string.
Assuming the relevance itself works (I haven’t checked), the syntax should be
if {(first tuesday of current month_and_year) + 21*day < now }
setting “Patch”=“Y” on “{parameter “action issue date” of action}” for client
end if