Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Hammer command to list hosts with host collections

    Posted on

    Hello everyone,

    I am looking to see if there is a hammer command to be able to list all the content hosts along with which host collection groups they are in. I am using 6.3.3.

    I am reviewing the hammer list and cannot find such a command:
    https://access.redhat.com/documentation/en-us/red_hat_satellite/6.3/pdf/hammer_cli_guide/Red_Hat_Satellite-6.3-Hammer_CLI_Guide-en-US.pdf

    hammer host list --organization-id x
    

    Does not show the host collection groups, but just shows the Host Group. Not what I am looking for.

    My initial way of doing such was to use a search of:

    host_collection != "1st Dev Test" and host_collection != "1st Prd Test" and host_collection != "2nd Dev Test" and host_collection != "2nd Prd Test"
    

    I have tried to replace the "and" with "or" and have the same results.

    However, when you combine searches like that you do not get results, which is a bug: https://bugzilla.redhat.com/show_bug.cgi?id=1635331 and according to support there is no ETA to have this resolved.

    My use for this is that I am patching content hosts based off of the host collection groups they are in. Adding the patching host collection group to the content host is a manual process so I want to make sure there is some sort of auditing.

    Is there another way to display the information that I am looking for?
    Thanks!

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat