Anda di halaman 1dari 9

2/20/2015

How to register and subscribe a system to the Red Hat Customer Portal using Red Hat Subscription-Manager - Red Hat Customer Portal

CU STO MER PO R TAL


Products & Services Knowledgebase Solutions
Customer Portal using Red Hat Subscription-Man...

How to register and subscribe a system to the Red Hat

log in (https://access.redhat.com/login?redirectTo=https://access.redhat.com/solutions/253273) to add comments or

How to register and subscribe a syst


to the Red Hat Customer Portal usin
Red Hat Subscription-Manager
( Updated November 18 2014 at 3:08 PM

0 ISSUE
How to register a new Red Hat Enterprise Linuxsystem to the Customer Portal using
Red Hat Subscription-Manager

How to un-register a system using Red Hat Subscription-Manager


How to register a Red Hat Enterprise Linuxserver to a specic subscription using its poolid
How to update or migrate registered server from RHN Classicto RHSM?
What is Subscription-Manager and how do I register a RHEL system so that I can install
packages or updates with yum?
How do I register my system to RHSMusing Subscription-Manager, to be able to install
packages using yum?
We are not able to install the packges from yum, how to register a system to RHSMto access
the packages?
I'm trying to nd rhn_registerwith RHEL 7.0 but it's missing. How do I register a RHEL7
server for updates?
How to register with rhsm

https://access.redhat.com/solutions/253273

1/9

2/20/2015

How to register and subscribe a system to the Red Hat Customer Portal using Red Hat Subscription-Manager - Red Hat Customer Portal

ENVIRONMENT
Red Hat Enterprise Linux(RHEL) 5.7 and newer
Red Hat Enterprise Linux(RHEL) 6.1 and newer
Red Hat Enterprise Linux(RHEL) 7.0 and newer
Red Hat Subscription Management
Red Hat Subscription-Manager
Red Hat Customer Portal

, RESOLUTION
Red Hat Subscription Management allows users to track their subscription quantity and consumption.
NOTE: With Red Hat Subscription-Manager, registration and utilization of a subscription
is actually a two-part process.
First register a system, then apply a subscription.

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

If the command is unable to attach a subscription, it will indicate that in the output. Then, you can
attach the subscription from the Customer Portal, instead (see the next section).

Register first, then attach a subscription in the Customer


Portal
Use the following command to register a system without immediately attaching a subscription:
# subscription-manager register

Attach a specific subscription through the Customer Portal


After registration, you can to assign a subscription to the registered system from the Customer Portal
by referring this article (https://access.redhat.com/site/solutions/776723).
After this, refresh the information on your machine using the following command. Be sure to
run this any time you add or change the attached subscription from the Customer Portal:
https://access.redhat.com/solutions/253273

2/9

2/20/2015

How to register and subscribe a system to the Red Hat Customer Portal using Red Hat Subscription-Manager - Red Hat Customer Portal

# subscription-manager refresh

Attach a subscription from any available that match the


system
After registration, use the following command to attach any available subscription that matches the
current system.
# subscription-manager attach --auto

Register with a specific pool


After registration, use the following command to attach a subscription from a specic pool:
# subscription-manager attach --pool=<POOL_ID>

Note: With subscription-manager-1.1.9-1 or later, attach option has been replacing the subscribe
option. For more information, please refer to following article: RHBA-2013-0350
(https://rhn.redhat.com/errata/RHBA-2013-0350.html)
If you are not sure of the pool ID needed, these and details such as expiration dates can be viewed
using the following command:
# subscription-manager list --available --all

Registration via GUI


# subscription-manager-gui

Systems can also be registered with Customer Portal Subscription Management during the
rstboot process or as part of the kickstart setup (both described in the Installation Guide
(http://docs.redhat.com/docs/enUS/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/sn-rstboot-updates.html))

Unregistering a system
# subscription-manager remove --all
# subscription-manager unregister
# subscription-manager clean

https://access.redhat.com/solutions/253273

3/9

2/20/2015

How to register and subscribe a system to the Red Hat Customer Portal using Red Hat Subscription-Manager - Red Hat Customer Portal

For additional instructions on registering, unregistering, and reregistering a system using Red
Hat Subscription Management, for more information please refer to Red Hat Enterprise Linux
Deployment Guide (http://docs.redhat.com/docs/enUS/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/registering-machine-ui.html) and
Red Hat Subscription Management documentation
(https://access.redhat.com/site/documentation/enUS/Red_Hat_Subscription_Management/).

RHEL SYSTEMS REGISTRATION GUIDE


This document is part of a collection covering RHEL System Registration.
If this is not the right solution for your registration needs or;
If you wish to make a different registration choice;
then you can return to the RHEL Systems Registration Guide
(https://access.redhat.com/site/articles/737393).

RED HAT LABS REGISTRATION ASSISTANT


We also have an online tool to assist you in selecting the most appropriate registration technology for
your system. If you would prefer to use this tool, please visit
https://access.redhat.com/labs/registrationassistant/
(https://access.redhat.com/labs/registrationassistant/).

Product(s)
Red Hat Enterprise Linux (https://access.redhat.com/search/browse/solutions#?
&portal_product=Red+Hat+Enterprise+Linux)
Red Hat Customer Portal (https://access.redhat.com/search/browse/solutions#?
&portal_product=Red+Hat+Customer+Portal)
Component

rhn_register (https://access.redhat.com/search/browse/solutions#?&portal_component=rhn_register)

subscription-manager (https://access.redhat.com/search/browse/solutions#?&portal_component=subscription-manager)
Category
Tags

Congure (https://access.redhat.com/search/browse/solutions#?&portal_category=Congure)

customer_portal (https://access.redhat.com/search/browse/solutions#?&portal_tag=customer_portal)

entitlements (https://access.redhat.com/search/browse/solutions#?&portal_tag=entitlements)
rhel (https://access.redhat.com/search/browse/solutions#?&portal_tag=rhel)
rhel_7 (https://access.redhat.com/search/browse/solutions#?&portal_tag=rhel_7)
rhn (https://access.redhat.com/search/browse/solutions#?&portal_tag=rhn)
https://access.redhat.com/solutions/253273

4/9

2/20/2015

How to register and subscribe a system to the Red Hat Customer Portal using Red Hat Subscription-Manager - Red Hat Customer Portal

rhsm (https://access.redhat.com/search/browse/solutions#?&portal_tag=rhsm)
subscription (https://access.redhat.com/search/browse/solutions#?&portal_tag=subscription)
subscription_management (https://access.redhat.com/search/browse/solutions#?
&portal_tag=subscription_management)

COMMENTS
John Call

There is no mention of the "unsubscribe" command in the man page


(manual) of subscription-manager. The command "subscription-manager
unsubscribe --all" works, but is undocumented. Was this command

Active Contributor

107 points

deprecated, and replaced with the "remove" command?


September 29 2013 at 11:01 AM (https://access.redhat.com/solutions/253273#comment546103)

Andy Feather

Hi,
I tried the subscription-manager but it is coming up with command not
found.

Newbie

15 points

What am I doing wrong?


April 25 2014 at 3:57 PM (https://access.redhat.com/solutions/253273#comment746443)

Steve Morris

/usr/sbin/subscription-manager

Newbie

5 points
April 30 2014 at 6:17 AM
(https://access.redhat.com/solutions/253273#comment-748083)


Newbie

5 points

I've registered the system but it can't be subscribed and I got this
message
"This system is registered to Red Hat Subscription Management, but is
not receiving updates. You can use subscription-manager to assign
subscriptions."
Could you please help me with this issue?
May 28 2014 at 9:15 AM (https://access.redhat.com/solutions/253273#comment-762813)

https://access.redhat.com/solutions/253273

5/9

2/20/2015

How to register and subscribe a system to the Red Hat Customer Portal using Red Hat Subscription-Manager - Red Hat Customer Portal

Nuru Yakub
Othman
Newbie

Any update on this issue??


Please help...

5 points
July 31 2014 at 9:09 AM
(https://access.redhat.com/solutions/253273#comment-797453)

Lawrence (Gus)
Landis
Newbie

5 points

Ditto Newbie above...


https://access.redhat.com/solutions/637583
How do I upgrade from Red Hat Enterprise Linux 6 to Red Hat Enterprise
Linux 7?
So, being a RHEL6 user, and having used rhn_register, I decided to follow
the path to:
How to Unregister a System from RHN Classic or a Satellite
https://access.redhat.com/solutions/224973
Where I was greeted by the "warm and friendly".
Access denied
You do not have permission to access the page you requested. If this is
knowledge content, it may be unpublished or retired. Documents may be
retired when they are outdated, duplicated, or no longer necessary. Please
try searching the Customer Portal for the most current, published
information.
Please advise! I have several production systems that are registered
this old way (rhn_register), so I need to update this stuff, even if I don't
try an in-place upgrade.
Cheers,
--ldl
July 25 2014 at 11:04 AM (https://access.redhat.com/solutions/253273#comment794863)

Fernando De Oro
Newbie

10 points

Any solution on this? I have a completely new Virtual machine running


RHEL7, when I run the subscription-manager no error appears, but i got
this when I list the susbcription:
The system has been registered with ID: 8xxxxxx-xxxxx-4001-aa39xxxxxx
Installed Product Current Status:

https://access.redhat.com/solutions/253273

6/9

2/20/2015

How to register and subscribe a system to the Red Hat Customer Portal using Red Hat Subscription-Manager - Red Hat Customer Portal

Product Name: Red Hat Enterprise Linux Server


Status: Not Subscribed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 7.0
Arch: x86_64
Status: Not Subscribed
Status Details: Not supported by a valid subscription.
Starts:
Ends:
I cannot use YUM with RH repos. weird!
October 31 2014 at 4:16 PM (https://access.redhat.com/solutions/253273#comment844583)

QINGFENG HOU

I have registered my system, but after system update, I can not start the
system. So I restored the system. However, I can not register my system

Newbie

10 points

now. What should I do to reregister my system? thanks!


November 21 2014 at 4:18 PM (https://access.redhat.com/solutions/253273#comment853613)

masanari
fujikawa

I have installed the RHEL7 on VMware Player an subscribed successed at


begin.

Newbie

10 points

But after deleted and re-install the RHEL7 on VM again.


I do not know the system need to Unregister the subscription at rst,
And then after re-install the RHEL7 on VM now that not allow to
subscribion again.
December 17 2014 at 4:54 AM (https://access.redhat.com/solutions/253273#comment861463)

Jan Pospisil
Red Hat
Newbie

I would suggest small improvement here. It would be nice to


mention/highlight two possible options in the beginning. Terminal and GUI.
I think it might be useful for customers to see it directly.

10 points
February 6 2015 at 1:59 PM (https://access.redhat.com/solutions/253273#comment881693)
https://access.redhat.com/solutions/253273

7/9

2/20/2015

How to register and subscribe a system to the Red Hat Customer Portal using Red Hat Subscription-Manager - Red Hat Customer Portal

Fate Bennett
Community Member

30 points

There is no attach option for subscription-manager in RHEL 6.3. The


correct command is:
subscription-manager subscribe --pool=[pool_id]
February 10 2015 at 8:41 PM (https://access.redhat.com/solutions/253273#comment883203)

Fate Bennett
Community Member

30 points

Under Unsubscribing a system the remove option does not exist in RHEL
6.3. Correct command is:
subscription-manager unsubscribe --all
February 10 2015 at 8:52 PM (https://access.redhat.com/solutions/253273#comment883213)

Sivakumar
Subbarayan
Newbie

Sir,
i have registered with RHEL 6.3 version. But the systemhas gone bad. i

5 points

want to use it on the other system. what is the procedure.


February 12 2015 at 7:07 AM (https://access.redhat.com/solutions/253273#comment884373)

Fate Bennett
Community Member

30 points

Hello Sivakumar,
Can you still access the RHEL 6.3 system that went bad, or is it
completely inaccessible?
If you can't access the system, then try deleting the system from the Red
Hat Portal -> Subscriptions -> Under Red Hat Subscription Management
-> Under Subscriber Inventory -> Click on "Systems" to access the
inventory -> Click the check box next to the system, and select "Delete
Selected".
If you can access the broken system, then do the following:
$> subscription-manager unsubscribe --all
$> subscription-manager unregister
$> subscription-manager clean
Verify it is no longer consuming subscriptions:

https://access.redhat.com/solutions/253273

8/9

2/20/2015

How to register and subscribe a system to the Red Hat Customer Portal using Red Hat Subscription-Manager - Red Hat Customer Portal

$> subscription-manager list --consumed


Should show nothing consumed
$> subscription-manager list
Should show unsubscribed
February 13 2015 at 12:21 AM (https://access.redhat.com/solutions/253273#comment884803)

Privacy Policy (http://www.redhat.com/en/about/privacy-policy)


Customer Portal Terms of Use (https://access.redhat.com/help/terms/)
All Policies and Guidelines (http://www.redhat.com/en/about/all-policies-guidelines)
Copyright 2015 Red Hat, Inc.

https://access.redhat.com/solutions/253273

9/9

Anda mungkin juga menyukai