How to change Life Cycle Environment and Content Views at the same time for a host using hammer CLI on Red Hat Satellite 6.
Environment
- Red Hat Satellite 6.2
Issue
- Unable to change
Life Cycle EnvironmentandContent Viewsfor Content Hosts using hammer CLI.
Resolution
- To change the
Lifecycle Environmentand Content View at the same time for a host, execute the followinghammer 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)
Tags
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.