Skip to content

Instantly share code, notes, and snippets.

@tuxfight3r tuxfight3r/
Created May 10, 2019

What would you like to do?
rhel subscription manager notes

rhel rhsm commands

# get the status of the node
subscription-manager status

# list the subscriptions attached
subscription-manager list
subscription-manager list --available
subscription-manager list --consumed

# Register a node to rhel subscription
subscription-manager register
subscripton-namager register --auto-attach --user=username --password=XXXX --proxy=XXX(optional)

# Unregister a node from rhel subscription
subscription-manager unregister

# delete specific subscription before unregistering
SERTIAL=$(subscription-manager list --consumed |awk '/Serial/ {print $2}')
subscription-manager remove --serial $SERIAL
sudo subscription-manager unregister

# auto attach subscription that's available
subscription-manager auto-attach

# attach a specific pool id
subscription-manager attach --pool=XYZ01234567

useful links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.