Trying to automate post-patching data collection

Latest response

I'm trying to automate some required post patching verification tasks. What I ultimately need is to generate a list of the latest kernel, for each OS type, that we have published to a given lifecycle environment. If I had a way to get the latest published content-view-version-id, given the content-view-id, repository-id, and lifecycle-environment, I have a query that would work. However, each time we publish, we have a new content-view-version-id. So to use the existing query, I need to be able to programatically extract that content-view-version-id after each time we publish.
Does anyone know of a way to get that information, from the CLI?

Responses