Retrieiving action properties from client

(imported topic written by JasonWalker)

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.

(imported comment written by NivS)

Have you tried switching the debugger to evaluate using the local client instead of the QNA client?

To the best of my knowledge, QNA operates in an isolated scope, so the installed BES client properties are not all exposed to it.

(imported comment written by JasonWalker)

Yes, I’ve tried the Fixlet Debugger in local client mode, and I’ve tried this in the client dashboard (_dashboard.html).

Do you have any examples of client relevance that will list pending actions on the client?

(imported comment written by JasonWalker)

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

T:
0.180 ms

(imported comment written by liuhoting)

Have you tried something like this on the presentation debugger?

names of member actions of bes actions whose (id of it = 36)

It will get you names of member actions of multiple action groups, in my case my multiple action group’s ID was 36…

Output would look something like this… I had these two actions as part of a simple multiple action group…

Updated SuSE Linux Enterprise 11 Relay - x86_64 - Tivoli Endpoint Manager version 8.2.1310.0 Now Available!

Updated SuSE Linux Enterprise 9 Client - i686 - Tivoli Endpoint Manager version 8.2.1310.0 Now Available!

(imported comment written by liuhoting)

Have you tried something like this on the presentation debugger?

names of member actions of bes actions whose (id of it = 36)

It will get you names of member actions of multiple action groups, in my case my multiple action group’s ID was 36…

Output would look something like this… I had these two actions as part of a simple multiple action group…

Updated SuSE Linux Enterprise 11 Relay - x86_64 - Tivoli Endpoint Manager version 8.2.1310.0 Now Available!

Updated SuSE Linux Enterprise 9 Client - i686 - Tivoli Endpoint Manager version 8.2.1310.0 Now Available!

(imported comment written by liuhoting)

Have you tried something like this on the presentation debugger?

names of member actions of bes actions whose (id of it = 36)

It will get you names of member actions of multiple action groups, in my case my multiple action group’s ID was 36…

Output would look something like this… I had these two actions as part of a simple multiple action group…

Updated SuSE Linux Enterprise 11 Relay - x86_64 - Tivoli Endpoint Manager version 8.2.1310.0 Now Available!

Updated SuSE Linux Enterprise 9 Client - i686 - Tivoli Endpoint Manager version 8.2.1310.0 Now Available!