Red Hat 7 registration
From MyWiki
Register and automatically subscribe in one step
Use the following command to register the system, then automatically associate any available subscription matching that system:
$ subscription-manager register --username <username> --password <password> --auto-attach