Skip to content

Get minimum sensor version supported for RFM hosts #1045

Discussion options

You must be logged in to vote

Hi @brucelourenco is your intention to deliver a report showing which hosts need to be updated to a given sensor version to exit RFM? Have you tried using the query_combined_kernels operation? Since you have the detail of those hosts that are in an RFM state, the next step would be to grab the kernel version for those hosts and filter the response from query_combined_kernels to find the supported sensor version if available. This operation requires the read permission on the Sensor Update Polices scope.

Try out something like this:

response = falcon.query_combined_kernels(filter="release:'5.4.228-131.415.amzn2.x86_64'")

Here is the response body snippet

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by brucelourenco
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
sensor update Sensor Update Policy issues and questions API usage General API usage issues and questions hosts Hosts or Host Groups issues and questions
2 participants