How to subscribe RHEL 6/7 system to RHEL for SAP Channel?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 6 and 7
  • Red Hat Enterprise Linux for SAP Subscription

Issue

  • How to subscribe the system to RHEL for SAP Channel ?
  • How to register the system and subscribe to RHEL for SAP Channel ?

Resolution

Either one of the below subscriptions is required to access RHEL 6/7 channels

When using Red Hat Satellite server check that relevant SAP repositories are synchronized on Sattelite server as described in How to configure Satellite server to synchronize SAP related repositories?.

1. Register system

If the system was not yet registered, register system to either Red Hat Satellite or Red Hat Customer portal using Red Hat Subscription management.

  1. Register the system to Red Hat Customer Portal or to Red Hat Satellite server 6.

    subscription-manager register --username=XXXX --password=XXXX
    

Install katello-ca-consumer-[host]-X.rpm from the satellite server before registering the system to Satellite 6.

2. Attach the 'SAP Applications' subscription

Attach the Red Hat Enterprise Linux for SAP Applications Subscription to the system. This process involves two steps

  1. Find the pool id of the RHEL for SAP Applications subscription.

    subscription-manager list  --available
    
  2. Attach the subscription to the system

    subscription-manager attach --pool=XXXX
    

3. Enable SAP Applications repositories

When registering the system, all the default yum repositories associated with a subscription are enabled.

  1. Enable the SAP Applications yum repositories

    • for x86_64 RHEL 6 platform

      subscription-manager repos --enable="rhel-sap-for-rhel-6-server-rpms"
      
    • for x86_64 RHEL 7 platform

      subscription-manager repos --enable="rhel-sap-for-rhel-7-server-rpms"
      
    • for PowerPC Little Endian (ppc64le) RHEL 7 platform

      subscription-manager repos --enable="rhel-sap-for-rhel-7-for-power-le-rpms"
      
    • for System Z (s390x) RHEL 7 platform

      subscription-manager repos --enable="rhel-sap-for-rhel-7-for-system-z-rpms"
      

4. Enable High Availability repositories

If the system is also required to be subscribed to High availability repository, then execute on of the below commands

  • for x86_64 RHEL 6 platform

    subscription-manager repos --enable="rhel-ha-for-rhel-6-server-rpms"
    
  • for x86_64 RHEL 7 platform

    subscription-manager repos --enable="rhel-ha-for-rhel-7-server-rpms"
    

5. Where to look for additional documentation

Check the article Where I can find documentation for SAP products on RHEL and other Red Hat products?

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

11 Comments

Can I do that for testing with the demo version ? (SAP Installation)

I tried to install the sapconf package but yum returns: the package does not exist .

Is your system subscribed properly to RHEL for SAP child channel ?. "yum repolist" should list the sap channel if the system is properly subscribed.

No, i only have "Red Hat Linux 7 Server".

Is there any way to get a trail "SAP child channel" subscription?

To get evaluation subscription, contact our Sales team. Contact information available in the below url https://access.redhat.com/support/contact/Sales/

Looks like we need an update:

Prompt:  # subscription-manager repos --enable="rhel-x86_64-server-sap-6" --enable="rhel-x86_64-server-6"
Error: rhel-x86_64-server-sap-6 is not a valid repository ID. Use --list option to see valid repositories.
Error: rhel-x86_64-server-6 is not a valid repository ID. Use --list option to see valid repositories.
Prompt: #

Did find these:

Prompt:  # subscription-manager repos --enable="rhel-sap-for-rhel-6-server-rpms"
Repository 'rhel-sap-for-rhel-6-server-rpms' is enabled for this system.
Prompt: # subscription-manager repos --enable="rhel-6-server-rpms"
Repository 'rhel-6-server-rpms' is enabled for this system.
Prompt: # yum repolist
...
rhel-6-server-rpms                                                     Red Hat Enterprise Linux 6 Server (RPMs)                                           18,113+245
rhel-sap-for-rhel-6-server-rpms                               Red Hat Enterprise Linux for SAP (RHEL 6 Server) (RPMs)                 51+18
rhel-x86_64-server-6.6.z                                           RHEL EUS Server (v. 6.6.z for 64-bit x86_64)                                       15,112+224
vmware-tools                                                               VMware Tools for Red Hat Enterprise Linux                                          40
repolist: 33,316
Prompt: # 

RH - Please update this solution, or tell us how to derive the specifics.

Updated. Thanks

Can you sync SAP repositories and subscribe hosts via Satellite 6?

To answer my own question, yes. Here's how to do it.

Step 1: Attach Red Hat Enterprise Linux Server for SAP HANA subscriptions to Satellite on Access portal

Step 2: Refresh manifest on Satellite. Content -> Red Hat Subscriptions

Step 3: Attach Red Hat Enterprise Linux Server for SAP HANA subscription to host. Hosts -> Content Hosts

Step 4: Enable RHEL for SAP HANA for RHEL 6 Server RPMs x86_64 6Server repository on Satellite. Content -> Red Hat Repositories

Step 5: Add Red Hat Enterprise Linux for SAP Hana product to sync and sync for first time. Content -> Sync Plans

Step 6: Add RHEL for SAP HANA for RHEL 6 Server RPMs x86_64 6Server repository to content view and publish/promote. Content -> Content Views

Step 7: Refresh subscriptions on host

[root@hostname ~]# subscription-manager refresh
1 local certificate has been deleted.
All local data refreshed

Step 8: List available repositories on host

[root@hostname ~]# subscription-manager repos --list
Repo ID:   rhel-sap-hana-for-rhel-6-server-rpms
Repo Name: RHEL for SAP HANA (for RHEL 6 Server) (RPMs)
Repo URL:  https://satellite.domain.local/pulp/repos/Org/Environment/ContentView/content/dist/rhel/server/6/$releasever/$basearch/sap-hana/os
Enabled:   0

Step 9: Enable SAP HANA repository on host

[root@hostname ~]# subscription-manager repos --enable rhel-sap-hana-for-rhel-6-server-rpms
Repository 'rhel-sap-hana-for-rhel-6-server-rpms' is enabled for this system.

Step 10: List enabled repositories on host

[root@hostname ~]# yum repolist
Loaded plugins: package_upload, product-id, search-disabled-repos, security, subscription-manager
rhel-6-server-rpms                                                                                                            | 2.0 kB     00:00
rhel-6-server-rpms/primary                                                                                                    |  32 MB     00:00
rhel-6-server-rpms                                                                                                                       19863/19863
rhel-6-server-satellite-tools-6.2-rpms                                                                                        | 2.1 kB     00:00
rhel-6-server-satellite-tools-6.2-rpms/primary                                                                                |  24 kB     00:00
rhel-6-server-satellite-tools-6.2-rpms                                                                                                       131/131
rhel-sap-hana-for-rhel-6-server-rpms                                                                                          | 1.9 kB     00:00
rhel-sap-hana-for-rhel-6-server-rpms/primary                                                                                  | 3.1 kB     00:00
rhel-sap-hana-for-rhel-6-server-rpms                                                                                                           18/18

Hi Seniors, I am trying to enable repository for SAP HANA. its showing error: subscription-manager repos --enable="rhel-7-server-rpms" --enable="rhel-sap-for-rhel-7-server-rpms" Error: 'rhel-sap-for-rhel-7-server-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories. Repository 'rhel-7-server-rpms' is enabled for this system.

Please suggest.

Hello Jasbir, for SAP HANA you would need to use SAP HANA channel rhel-sap-hana-for-rhel-7-server-rpms as described in the How to subscribe a RHEL 7 system to RHEL for SAP HANA child channel?. Channel rhel-sap-for-rhel-7-server-rpms is used for the SAP Netweaver on RHEL.