How to generate a patch report for all content hosts registered to Red Hat Satellite?

Solution Verified - Updated

Environment

  • Red Hat Satellite 6

Issue

Is there any command to generate security patches pending count for all content-hosts from Red Hat Satellite's command line?

Resolution

  • Use the following hammer command:

    # hammer host list --fields 'Id,Name,Operating System,Ip,Global Status,Content View,Lifecycle environment,Security,Bugfix,Enhancement'
    
  • The output from the above command can be displayed in .csv format by using the --csv option as follows:

    # hammer --csv host list --fields 'Id,Name,Operating System,Ip,Global Status,Content View,Lifecycle environment,Security,Bugfix,Enhancement'
    

For more KB articles/solutions related to Red Hat Satellite 6 hammer Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x hammer-related Issues

SBR
Product(s)
Tags

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.