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:
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?