Hammer command to list errata for a particular content-view in Red Hat Satellite 6

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6

Issue

  • Hammer command to list errata for a particular content-view in Red Hat Satellite 6
  • Is it possible to list errata for a content-view ?

Resolution

  • hammer command to fetch erratum for a particular content-view
# hammer -u admin -p password erratum list --content-view-id <cv_id> --content-view-version <v_no> --organization-id <o_id> > /tmp/erraata.csv

Note: Replace cv_id with the content-view id , v_no with version number and o_id with Organization id that needs to be queried.

  • Detailed information regarding the above can also be fetched using REST API
#  curl -k -s -u admin 'https://satellite.lab.example.com/katello/api/v2/errata?content_view_version_id=5&per_page=10000&search=&sort_by=issued&sort_order=DESC'  | python -mjson.tool

Note: Here replace content_view_version_id with the desired ID from hammer content-view version list command.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.