I’m trying to determine, from the BigFix Client, whether there are pending Actions and to return properties from those Actions. I’m planning to use this in a couple of ways. I’m going to set up a series of Patch Actions that are constrained by a client setting “PatchWindowState”, and give the clients an Offer action that will allow them to toggle their own PatchWindowState. I’d like to give them a client dashboard that could list which Actions are still in a Constrained state, waiting for them to toggle the PatchWindowState setting. I’d also like to have relevance in my Opt-In offer to only be relevant if there are existing Actions in a Constrained state for the client.
I think there must be some functionality like that in the client, as the existing client dashboard “Offers” and “Progress” tabs look like they can already pull most of the information I’m looking for. I’ve looked at the “Action” objects in the Inspectors reference at https://support.bigfix.com/inspectors/Action%20Objects_Any.html#action
but when I execute any Action object queries in QnA I always get no actions returned.
I’m getting closer, but cannot retrieve an Action Name for a Multiple Action Group. Multiple Action Groups seem to be missing a “Subject” header. I haven’t found a way to retrieve the Action Title for a Multiple Action Group from the client.
q:
(id
of
it,
status
of
it,
constrained
of
it,
active count
of
it,
concatenation
“;”
of
(name
of
it
&
“:”
&
value
of
it
)
of
headers
of
it
)
of
actions (ids
of
(fixlets
of
sites)
whose
(id
of
it
=
283230
or
id
of
it
=
272483
))
whose
(status
of
it
as
lowercase
!=
“not relevant”
and
status
of
it
as
lowercase
!=
“executed”
)
A:
283230, Waiting, True, 0, Subject:constrained action test for action;X-Action-Component-Type:Action;X-Classify-Subsequent-Relevance:Targeting;X-Relevant-When:true;X-Success-Criteria:RunToCompletion;X-Fixlet-ID:283230;X-BigFix-Minimum-Required-Client-Version:7.0.0.0;X-Report-Criteria:IsOrWasTargeted;action-activation-constraint:(my constraint relevance);action-active-user-requirement:None;action-download-during-precachestage:1;action-retry-limit:2;action-retry-delay:after reboot;action-try-limit:3;locking-exempt:0;action-distributor:opsite142;action-ui-name:System Updates are being installed;action-issuer-name:jwalker;action-ui-remote-consoles:1;action-ui-progress-title:System Updates are being installed;action-ui-progress-text:System Updates are being installed;site-context:http://mybesserver:52311/cgi-bin/bfgather.exe/actionsite
A:
272483, Waiting, True, 0, MIME-Version:1.0;X-Action-Component-Type:Group Header;X-Classify-Subsequent-Relevance:Targeting;X-Relevant-When:exists true whose (if true then (member of group 128872 of site “MyCustomSite”) else false);X-Classify-Subsequent-Relevance:Applicability;X-Relevant-When:((windows of operating system) AND ((it starts with “Win2008”) of name of operating system)) AND (exists site “MyCustomSite”);X-Fixlet-ID:272483;X-BigFix-Minimum-Required-Client-Version:7.0.0.0;X-Report-Criteria:IsOrWasRelevant;action-activation-constraint:(my_constraint_relevance);action-active-user-requirement:None;action-download-during-precachestage:1;action-retry-limit:2;action-retry-delay:after reboot;action-try-limit:3;locking-exempt:0;action-ui-name:System Updates are being installed;action-issuer-name:jwalker;action-ui-remote-consoles:1;action-ui-progress-title:System Updates are being installed;action-ui-progress-text:System Updates are being installed by BigFix