OS

Attach a Specific Subscription Pool to a RHEL Machine

#rhel , #subscription-manager , #pool

Attach a Specific Subscription Pool to a RHEL Machine

subscription-manager list --all --available --matches="OpenShift Container Platform" | awk '/Pool ID/ {print $3}' | head -1
subscription-manager attach --pool=$(subscription-manager list --all --available --matches="OpenShift Container Platform" | awk '/Pool ID/ {print $3}' | head -1)