There are two methods for managing your subscriptions. Both methods access SUSE Customer Center and provide specialized benefits.
Directly connecting to SUSE Customer Center is the recommended default way of managing your SUSE Manager server.
If you have special network security requirements which do not allow access from your internal network to the internet then you can use SUSE Linux Enterprise Server 12 running the Repository Management Tool (RMT) or Repository Management Tool (SMT). These tools will contact SUSE Customer Center from a system connected to the external network and obtain updates for your clients which you may then mount on your internal SUSE Manager server. This is the preferred method for managing client systems within a highly secure network infrastructure.
SUSE Customer Center (SCC) is the central place to manage your purchased SUSE subscriptions, helping you access your update channels and get in contact with SUSE experts. The user-friendly interface gives you a centralized view of all your SUSE subscriptions, allowing you to easily find all subscription information you need. The improved registration provides faster access to your patches and updates. SUSE Customer Center is also designed to provide a common platform for your support requests and feedback. Discover a new way of managing your SUSE account and subscriptions via one interface—anytime, anywhere. For more information on using SUSE Customer Center , see https://scc.suse.com/docs/userguide.
If it is not possible to connect SUSE Manager directly or via a proxy to the Internet, a disconnected setup in combination with RMT or SMT is the recommended solution. In this scenario, RMT or SMT stays in an “external” network with a connection to SUSE Customer Center and synchronizes the software channels and repositories on a removable storage medium. Then you separate the storage medium from RMT or SMT, and mount it locally on your SUSE Manager server to read the updated data.
RMT. The successor of SMT and currently runs on the following systems:
SUSE Linux Enterprise 15 (when available)
Temporarily (for testing only): 12 SP2, and 12 SP3
Not officially supported: openSUSE Leap 42.2, Leap 42.3, and openSUSE Tumbleweed
RMT allows you to provision updates for all of your devices running a product based on SUSE Linux Enterprise 12 SPx and later as well as openSUSE Leap.
SMT. The predecessor of RMT and is no longer actively developed. It runs on SUSE Linux Enterprise Server 12 SPx and allows you to provision updates for products based on SUSE Linux Enterprise 12 SPx and earlier. You will still need it, if you want to update SUSE Linux Enterprise 11 clients.
The following procedure will guide you through using RMT. It will work best with a dedicated RMT instance per SUSE Manager .
Configure RMT in the external network with SCC. For details about configuring RMT, see the official guide (when available).
Preparation work:
Run rmt-cli sync
to download available products and repositories data for your organization from SCC.
Run rmt-cli products list --all
to see the list of products that are available for your organization.
Run rmt-cli repos list --all
to see the list of all repositories available.
With rmt-cli repos enable
enable repositories you want to mirror.
With rmt-cli products enable
enable products. For example, to enable SLES _15:
rmt-cli product enable sles/15/x86_64
Using RMT, mirror all required repositories.
Get the required JSON responses from SCC and save them as files at the specified path (for example, /mnt/usb
).
The directory being written to must be writeable for the same user as the rmt service.
The rmt user setting is defined in the cli
section of /etc/rmt.conf
.
Enter:
{prompt.root}rmt-cli export data /mnt/usb
Export settings about repositories to mirror to the specified path (in this case, /mnt/usb
); this command will create a repos.json
file there:
{prompt.root}rmt-cli export settings /mnt/usb
Mirror the repositories according to the settings in the repos.json
file to the specified path (in this case, /mnt/usb
).
{prompt.root}rmt-cli export repos /mnt/usb
Unmount the storage medium and carry it securely to your SUSE Manager server.
On the SUSE Manager server, continue with Section 2.2.3, “Updating Repositories on SUSE Manager From Storage Media”.
The following procedure will guide you through using SMT.
Configure SMT in the external network with SCC. For details about configuring SMT with SUSE Linux Enterprise 12, see https://www.suse.com/documentation/sles-12/book_smt/data/book_smt.html.
Using SMT, mirror all required repositories.
Create a “database replacement file” (for example, /tmp/dbrepl.xml
).
{prompt.root}smt-sync --createdbreplacementfile /tmp/dbrepl.xml
Mount a removable storage medium such as an external hard disk or USB flash drive.
Export the data to the mounted medium:
smt-sync --todir /media/disk/ smt-mirror --dbreplfile /tmp/dbrepl.xml --directory /media/disk \ --fromlocalsmt -L /var/log/smt/smt-mirror-export.log
The directory being written to must be writeable for the same user as the smt daemon (user=smt). The smt user setting is defined in /etc/smt.conf
.
You can check if the correct user is specified via the following command:
{prompt.root}egrep '^smtUser' /etc/smt.conf
+
+
.Keeping the Disconnected Server Up-to-date
NOTE: smt-sync
also exports your subscription data.
To keep SUSE Manager
up-to-date with your subscriptions, you must frequently import and export this data.
+
Unmount the storage medium and carry it securely to your SUSE Manager server.
On the SUSE Manager server, continue with Section 2.2.3, “Updating Repositories on SUSE Manager From Storage Media”.
This procedure will show you how to update the repositories on the SUSE Manager server from the storage media.
Mount the storage medium on your SUSE Manager server (for example, at /media/disk
).
Specify the local path on the SUSE Manager server in /etc/rhn/rhn.conf
:
server.susemanager.fromdir = /media/disk
This setting is mandatory for SUSE Customer Center
and mgr-sync
.
Restart Tomcat:
systemctl restart tomcat
Before performing another operation on the server execute a full sync:
mgr-sync refresh # SCC (fromdir in rhn.conf required!)
mgr-sync
can now be executed normally:
mgr-sync list channels mgr-sync add channel channel-label
The disk must always be available at the same mount point. To avoid data corruption, do not trigger a sync, if the storage medium is not mounted. If you have already added a channel from a local repository path, you will not be able to change its URL to point to a different path afterwards.
Up-to-date data is now available on your SUSE Manager server and is ready for updating client systems. According to your maintenance windows or update schedule refresh the data on the storage medium with RMT or SMT.
On your SUSE Manager server, unmount the storage medium and carry it to your RMT or SMT.
On your RMT or SMT system, continue with the synchronization step.
The storage medium must always be available at the same mount point. To avoid data corruption, do not trigger a sync if the storage medium is not mounted.
This concludes using RMT or SMT with SUSE Manager .