SUSE Support

Here When You Need Us

De-register a SLE client from a SMT server.

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

Environment

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

Situation

A SLES client system that is currently registered against SMT, must be de-registered.

Resolution

On the Client system side:

The first step is to clean up all registration information, services and repositories:

IMPORTANT:
The following commands will delete all repository files, if there is a requirement to keep any manually created custom repositories, please perform a backup of the files before continuing, and restore the custom repository files once the procedure described in this TID has finished.

NOTE:  If any of the following commands returns an error, do not worry.

- For SLE 11 based clients run the following commands as 'root' user :
# suse_register -E
# rm -f /etc/SUSEConnect
# rm -rf /etc/zypp/credentials.d/*
# rm -rf /etc/zypp/repos.d/*
# rm -f /etc/zypp/services.d/*
# rm -f /var/cache/SuseRegister/*
# rm -f /etc/suseRegister*
# rm -f /var/cache/SuseRegister/lastzmdconfig.cache
# rm -f /etc/zmd/deviceid
# rm -f /etc/zmd/secret

- For SLE 12 or SLE 15 based clients run the following commands as 'root' user :
# SUSEConnect --de-register
# SUSEConnect --cleanup
# rm -f /etc/SUSEConnect
# rm -rf /etc/zypp/credentials.d/*
# rm -rf /etc/zypp/repos.d/*
# rm -f /etc/zypp/services.d/*
 
And finally, on the SMT server side, verify that the client system was successfully de-registered by listing the current client registrations using :
# smt-list-registrations

In the above command output, search for the client hostname. When not listed here, that means that the de-registration was completed successfully. However, once it is still listed in this list, then proceed to delete the registration manually.

Get the Unique ID of the Client from the first column and run :
# smt-delete-registration -g <UNIQUE-ID-HERE>
(NOTE:  In case the Client shows listed more than once, then run the following command for each one of the Unique ID's listed.)

Verify that the system was successfully deleted and no longer listed :
# smt-list-registrations

Once finished. the de-registration of the SLE client from the SMT server is complete.

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:7022119
  • Creation Date: 17-Oct-2017
  • Modified Date:21-Jan-2021
    • 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

tick icon

SUSE Support Forums

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

tick icon

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.

tick icon

Open an Incident

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