List all available packages for host in Red Hat Satellite using hammer

Solution Verified - Updated

Environment

  • Red Hat Satellite 6

Issue

  • How to list all the available packages using the hammer command on Red Hat Satellite 6?

Resolution

  • Run the below command on Red Hat Satellite 6 to get the ID of the host.

      # hammer host list
    
  • Run the below command on Red Hat Satellite 6 to list all available packages for the host.

      # hammer host package list --host-id <HOST-ID> 
    

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

SBR
Product(s)
Category

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.