Query for SA plan actions

Working on a dashboard for SA plans and their status. Step is to simply get a list of the SA plans. I know those are just BES Actions. I used the Excel plugin to try and find the commonality of JUST the SA actions, but I haven’t nailed it down. I tried:

(ids of it, names of it, Time Issued of it) of BES Actions 
	whose (Action Script Type of it = "application/x-sh")

(ids of it, names of it, Time Issued of it) of BES Actions
	whose (Targeted List of it = "planEngineGeneric")

…but I’m getting things I shouldn’t (but it’s close). Ideas on how to ONLY get the SA actions?

I did find “Domain: Server Automation” in the action, but I can’t find how to query for that domain of BES Actions. Anyone else have any thoughts?

Hi Jon, try this:

Plan Actions:

(id of it, name of it) of bes actions whose( action script of it starts with "#!/plan/xml")

Plan definitions:

(id of it, name of it) of bes fixlets whose( script of action of it starts with "#!/plan/xml")

(Just FYI - you might want to put questions like this into the Server Automation sub-category, just so you get the attention of the right folks as quickly as possible)

2 Likes

Thanks, I need to figure out how to dig in deeper into the available options of those objects. Like I said, I was using the excel plugin to find what to query on and “action script” was not an options. I knew that was something I wanted to search on, but didn’t know how to get to it.

No problem :smile:

Here’s a useful link for playing around with relevance:

https://developer.bigfix.com/relevance/search/

You can use this to search for a terms (e.g. “bes action”) and see what inspectors and properties are available.

And here is the “data” that backs that search:

https://developer.bigfix.com/relevance/reference/

(e.g. https://developer.bigfix.com/relevance/reference/bes-action.html)

Cheers,
Paul.

2 Likes