Registration of a Client against a SMT server in non-interactive mode.

This document (7021084) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 12
Subscription Management Tool 11
Subscription Management Tool 12

Situation

The registration process of a Client against a SMT server is an interactive procedure, but in larger environments login into each Client is not longer an option, so a non-interactive registration is needed.

Resolution

The SMT Client registration script includes an option to pass it the certificate fingerprint of the SMT Server in order to avoid interaction during registration, so the first step is to get the fingerprint by login as root into the SMT server and run the following command :
# openssl x509 -noout -in /srv/www/htdocs/smt.crt -fingerprint -sha1

The SHA1 fingerprint output should look similar to this :
 DE:B8:F6:7F:13:30:FB:A5:D1:63:3F:9F:93:85:E1:17:B6:0A:60:17

The next step is to login as root into the Client you want to register and get the registration script from the SMT server with:
# wget http://YOUR-SMT-FQDN-HERE/repo/tools/clientSetup4SMT.sh

Set the proper permissions to be able to execute the script:
# chmod 755 clientSetup4SMT.sh

And finally, run the registration process like this:
# ./clientSetup4SMT.sh --host <YOUR-SMT-FQDN-HERE> --fingerprint <YOUR-SMT-CERTIFICATE-FINGERPRINT-STRING-HERE> --yes

And that is it, registration will be performed without any user interaction.

Cause

After a Subscription change, Organization change or as a consequence of an issue on the SMT server side, all Clients must be re-registered.

Additional Information

This procedure could be adapted as an automated method to be deployed remotely on many SMT Clients via SSH or any job/batch scheduling tools.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7021084
  • Creation Date: 12-Jul-2017
  • Modified Date:03-Mar-2020
    • Subscription Management Tool
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center