Environment:

SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 12
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 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 NetIQ/Novell/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.

Leave a Reply

Your email address will not be published. Required fields are marked *