Show Table of Contents
6.2. Setting Service Levels Through the Command Line
A general service level preference can be set using the
service-level --set command.
Example 4. Setting a Service Level Preference
First, list the available service levels for the system, using the
--list option with the service-level command.
[root@server ~]# subscription-manager service-level --list
+-------------------------------------------+
Available Service Levels
+-------------------------------------------+
Standard
None
Premium
Self-Support
Then, set the desired level for the system.
[root@server ~]# subscription-manager service-level --set=self-support Service level set to: self-support
The current setting for the local system is shown with the
--show option:
[root#server ~]# subscription-manager service-level --show Current service level: self-support
A service level preference can be defined when a subscription operation is being run (such as registering a system or attaching subscriptions after registration). This can be used to override a system preference. Both the
register and attach commands have the --servicelevel option to set a preference for that action.
Example 5. Autoattaching Subscriptions with a Premium Service Level
[root#server ~]# subscription-manager attach --auto --servicelevel Premium Service level set to: Premium Installed Product Current Status: ProductName: RHEL 6 for Workstations Status: Subscribed
Note
The
--servicelevel option requires the --auto-attach option (for register) or --auto option (for attach). It cannot be used when attaching a specified pool or when importing a subscription.

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.