Red Hat Bugzilla – Bug 1254903
Is there any CLI can subscribe/unsubscribe/unregister a host on Satellite like the headpin?
Last modified: 2015-12-03 10:46:17 EST
On SAM server, we can run following CLI for host subscribe/unsubscribe/unregister:
headpin -u admin -p admin system [subscribe / unsubscribe / unregister] --name=host_uuid --org=ACME_Corporation
But on satellite server, how to do this?
we try to use hammer, but no available options for subscribe/unsubscribe/unregister, thus, we can't write some auto scripts for virt-who esx/hyperv/rhevm testing.
Is there anybody have solution or workaround for this issue?
Thanks a lot.
There is work to extend hammer to attach/unattach subscriptions to content hosts. There is currently 'hammer content-host create' and delete for creating the systems.
In the short term the best solution would be to hit the API directly. You may wish to collaborate with Satellite-6 QE and their robotello project.
Hi Tom, thanks for your comment, we solved this problems by satellite API.