How to change Life Cycle Environment and Content Views at the same time for a host using hammer CLI on Red Hat Satellite 6.

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.2

Issue

  • Unable to change Life Cycle Environment and Content Views for Content Hosts using hammer CLI.

Resolution

  • To change the Lifecycle Environment and Content View at the same time for a host, execute the following hammer commands.
# hammer host update --name host_name --lifecycle-environment "env_name" --content-view "cn_name" --organization "org_name"
  • Check the host properties by running
# hammer host info --name host_name  --lifecycle-environment "env_name" --content-view "cn_name" --organization "org_name"

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

SBR
Product(s)

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.