Add Host to host collection "prod" using Hammer

Latest response

Hello,

How can I add Host to host collection "prod" using Hammer Command?

Regards,

MP

Responses

Thanks, I figured it out.

Run Hammer command to find the Server ID’s

hammer --output csv host-collection hosts --name "{host_collection_name}" --organization "{ORG_NAME}" | grep –I {server_name}

Obtain the HOST ID

Then run following.

hammer host-collection add-host --host-ids {HOST_ID} --name host_collection_name --organization "ORG_NAME"

Close

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