Show Table of Contents
3.7.6. Importing Activation Keys
Activation keys in both Satellite 5 and 6 serve almost identical purposes. The command-line tools use activation keys to register and subscribe systems to Red Hat Satellite. Activation keys in Satellite 5 have different properties, such as system groups, channel entitlements, and system entitlements (provisioning, monitoring), compared to Satellite 6, which uses content views and host collections.
The earlier stages of the transition process focused on recreating the Satellite 5 data types within Satellite 6. This section describes how to import the activation keys from Satellite 5 and to associate them with the imported data types.
The following example illustrates a typical use case for importing activation keys.
Example 3.11. Importing Activation Keys into Satellite 6
# hammer import activation-key --csv-file /tmp/exports/activation-keys.csv Activation key usage_limit: unlimited Creating new activation_key: 1-rhel5-puppet Associating activation key [1] with host collections [2] Activation key usage_limit: unlimited Creating new activation_key: 1-rhel6-puppet Associating activation key [2] with host collections [1] Creating new ak_content_view: ak_1 Publishing content view: 15 Associating activation key [1] with content view [15] Updating activation_key with id: 1 Creating new ak_content_view: ak_2 Publishing content view: 16 Associating activation key [2] with content view [16] Updating activation_key with id: 2
You can use the
hammer activation-key list --organization-id ORG-ID command to verify that the activation keys have been recreated. Ensure you use the correct organization ID.
You can also log in to the WebUI as an administrator to verify that the activation keys were created. Ensure you are in the correct organization, and then navigate to → .
The following example illustrates the use of the command-line tools to verify the import of activation keys.
Example 3.12. Verifying the Import of Activation Keys
# hammer activation-key list --organization-id 3 ID | NAME | CONSUMED | LIFECYCLE ENVIRONMENT | CONTENT VIEW 2 | 1-rhel6-puppet | 0 of Unlimited | | ak_2 1 | 1-rhel5-puppet | 0 of Unlimited | | ak_1

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.