The software described in this documentation is either no longer supported or is in extended support.
Oracle recommends that you upgrade to a current supported release.

3.2 Working with Activation Keys Using spacecmd

To create an activation key, use the activationkey_create command, for example:

spacecmd {SSM:0}> activationkey_create 
Name (blank to autogenerate): oraclelinux6-x86_64
Description [None]: Oracle Linux 6 (x86_64)

Base Channels
-------------
oraclelinux6-x86_64
oraclelinux7-x86_64

Base Channel (blank for default): oraclelinux6-x86_64

provisioning_entitled Entitlement [y/N]: y

monitoring_entitled Entitlement [y/N]: N

virtualization_host Entitlement [y/N]: N

virtualization_host_platform Entitlement [y/N]: N

Universal Default [y/N]: N
INFO: Created activation key 1-oraclelinux6-x86_64

To list all activation keys, use the activationkey_list command.

spacecmd {SSM:0}> activationkey_list
1-oraclelinux6-x86_64
1-oraclelinux7-x86_64

To display the details of an activation key, use the activationkey_details command.

spacecmd {SSM:0}> activationkey_details 1-oraclelinux7-x86_64
Key:                    1-oraclelinux7-x86_64
Description:            Oracle Linux 7 x86_64
Universal Default:      False
Usage Limit:            0
Deploy Config Channels: False

Software Channels
-----------------
oraclelinux7-x86_64
 |-- oraclelinux7-x86_64-addons
 |-- oraclelinux7-x86_64-mysql55
 |-- oraclelinux7-x86_64-mysql56
 |-- oraclelinux7-x86_64-optional
 |-- oraclelinux7-x86_64-spacewalk24-client
 |-- oraclelinux7-x86_64-uek-r4

Configuration Channels
----------------------

Entitlements
------------

System Groups
-------------

Packages
--------

To delete an activation key, use the activationkey_delete command.

spacecmd {SSM:0}> activationkey_delete 1-oraclelinux7-x86_64
1-oraclelinux7-x86_64

Delete activation key(s) [y/N]: y