SUSE Manager/SMT

From MicroFocusInternationalWiki
Jump to: navigation, search

SUSE Manager Main Page

Subscription Management Tool (SMT) and Disconnected Setup (DMZ)

If it is not possible to connect SUSE Manager directly or via a proxy to the Internet, a disconnected setup in combination with Subscription Management Tool (SMT) is the recommended solution. In this scenario, 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 SMT, and mount it locally on your SUSE Manager server to read the updated data.

The following procedure will guide you through using SMT.

SMT: Fetching Repository Data from SUSE Customer Center

1. Configure SMT in the external network with SUSE Customer Center (SCC). For details about configuring SMT with SUSE Linux Enterprise 12 SP1, see: https://www.suse.com/documentation/sles-12/book_smt/data/book_smt.html

2. Using SMT, mirror all required repositories.

 smt-mirror -d

Make sure that all the mandatory channels for any SUMA product you need are mirrored. Use this command to see all the repos SMT has mirrored:

 smt-repos -o


3. Mount a removable storage medium such as an external hard disk or USB flash drive - in this example we will use '/media/disk'.

4. Create a "database replacement file" (for example, /media/disk/dbrepl.xml, and capture all the updated SMT info. Ensure proper permissions so that the smt commands complete without error.

 chown smt:www /media/disk -R
 smt-sync --createdbreplacementfile /media/disk/dbrepl.xml
 smt-sync --todir /media/disk/
 smt-mirror --dbreplfile /media/disk/dbrepl.xml --directory /media/disk \
            --fromlocalsmt -L /var/log/smt/smt-mirror-export.log

NOTE: Keeping A Disconnected Server Up-to-date smt-sync also exports your subscription and entitlement data. To keep SUSE Manager up-to-date with your subscriptions and entitlements, you must frequently import and export this data.

5. Unmount the storage medium from SMT and connect it to your SUSE Manager 3 Server.

The next procedure will show you how to update your server from the SMT media.

Updating Your SUSE Manager Server from the Storage Medium

1. Mount the storage medium on your SUMA server in the SAME directory each time it is updated and referenced (for example, at /media/disk).

2. Specify the local path on the SUSE Manager server (one time) in /etc/rhn/rhn.conf:

 server.susemanager.fromdir = /media/disk

This setting is mandatory for mgr-sync to look for the information locally and not on SUSE Customer Center.

3. Restart the SUSE Manager services

  spacewalk-service restart

4. Before performing another operation on the server execute a full sync:

 mgr-sync refresh   # SCC (fromdir in rhn.conf required!)

5. mgr-sync can now be executed normally - for example:

 mgr-sync list channels
 mgr-sync add channel channel-label
 mgr-sync refresh --refresh-channels

WARNING: Potential Data Corruption

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.

Refreshing Data on the Storage Medium from SMT

According to your maintenance windows or update schedule refresh the data on the storage medium with SMT.


1. On your SUSE Manager server, unmount the storage medium and connect it to your SMT.

2. On your SMT system, continue with Step 4 as referenced in "SMT: Fetching Repository Data from SUSE Customer Center" above. If desired, you can create a script that executes these commands for future use.

 chown smt:www /media/disk -R
 smt-sync --createdbreplacementfile /media/disk/dbrepl.xml
 smt-sync --todir /media/disk/
 smt-mirror --dbreplfile /media/disk/dbrepl.xml --directory /media/disk \
            --fromlocalsmt -L /var/log/smt/smt-mirror-export.log

3. Follow the directions starting from step 4 in "Updating Your SUSE Manager Server from the Storage Medium" above

WARNING: Potential Data Corruption

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.


page modified by dvosburg@suse.com