UBUNTU-ADVANTAGE

Section: Ubuntu Advantage (1)
Updated: 21 February 2020
Index Return to Main Contents

 

NAME

ubuntu-advantage - Manage Ubuntu Advantage services from Canonical

 

SYNOPSIS

ua <command> [<args>]
ubuntu-advantage <command> [<args>]

 

DESCRIPTION

Ubuntu Advantage is a collection of services offered by Canonical to Ubuntu users. The Ubuntu Advantage command line tool is used to attach a system to an Ubuntu Advantage contract to then enable and disable services from Canonical. The available commands and services are described in more detail below.

 

COMMANDS

attach [--no-auto-enable] <token>
Connect an Ubuntu Advantage support contract to this machine.

The token parameter can be obtained from https://auth.contracts.canonical.com/.

The optional --no-auto-enable flag will disable the automatic enablement of recommended entitlements which usually happens immediately after a successful attach.

detach
Remove the Ubuntu Advantage support contract from this machine. This also disables all enabled services that can be.

disable [cc-eal|cis|esm|fips|fips-updates|livepatch]
Disable this machine's access to an Ubuntu Advantage service.

enable [cc-eal|cis|esm|fips|fips-updates|livepatch]
Activate and configure this machine's access to an Ubuntu Advantage service.

refresh
Refresh contract and service details from Canonical.

status [--format=tabular|json|yaml]
Report current status of Ubuntu Advantage services on system.

This shows whether this machine is attached to an Ubuntu Advantage support contract. When attached, the report includes the specific support contract details including contract name, expiry dates, and the status of each service on this system.

The attached status output has four columns:

SERVICE: name of the service

ENTITLED: whether the contract to which this machine is attached entitles use of this service. Possible values are: yes or no

STATUS: whether the service is enabled on this machine. Possible values are: enabled, disabled, n/a (if your contract entitles you to the service, but it isn't available for this machine) or (if you aren't entitled to this service)

DESCRIPTION: a brief description of the service

The unattached status output instead has three columns. SERVICE and DESCRIPTION are the same as above, and there is the addition of:

AVAILABLE: whether this service would be available if this machine were attached. The possible values are yes or no.

version
Show version of the Ubuntu Advantage package.

 

CONFIGURATION

By default, Ubuntu Advantage client configuration options are read from /etc/ubuntu-advantage/uaclient.conf.

The following configuration options are available:

contract_url
The ubuntu advantage contract server URL
security_url
The ubuntu advantage security server URL
data_dir
Where Ubuntu Advantage client stores its data files
log_level
The logging level used when writing to log_file
log_file
The log file for the Ubuntu Advantage client

The following options must be nested under the "ua_config" key:

http_proxy
If set, ua will use the specified http proxy when making any http requests
https_proxy
If set, ua will use the specified https proxy when making any https requests
apt_http_proxy
If set, ua will configure apt to use the specified http proxy by writing a apt config file to /etc/apt/apt.conf.d/90ubuntu-advantage-aptproxy
apt_https_proxy
If set, ua will configure apt to use the specified https proxy by writing a apt config file to /etc/apt/apt.conf.d/90ubuntu-advantage-aptproxy

If needed, authentication to the proxy server can be performed by setting username and password in the URL itself, as in:

  http_proxy: http://<username>:<password>@<fqdn>:<port>

Additionally, some configuration options can be overridden in the environment by setting an environment variable prefaced by UA_<option_name>. Both uppercase and lowercase environment variables are allowed. The configuration options that support this are: data_dir, log_file, log_level, and security_url.

For example, the following overrides the log_level found in uaclient.conf:

  UA_LOG_LEVEL=info ua attach

 

SERVICES

Common Criteria EAL2 Provisioning (cc-eal)
Enables and install the Common Criteria artifacts.

The artifacts include a configure script, a tarball with additional packages, and post install scripts. The artifacts will be installed in /usr/lib/common-criteria directory and the README and configuration guide are available in /usr/share/doc/ubuntu-commoncriteria directory.

CIS Audit (cis)
Enables and installs the CIS Audit artifacts.

Extended Security Maintenance (esm)
Extended Security Maintenance ensures the ongoing security and integrity of systems running Ubuntu Long Term Support (LTS) releases through Ubuntu Advantage for Infrastructure.

See https://ubuntu.com/esm for more information.

FIPS 140-2 certified modules (fips)
Install, configure, and enable FIPS 140-2 certified modules.

After successfully enabling FIPS, the system MUST be rebooted. Failing to reboot will result in the system not running the updated FIPS kernel.

Disabling FIPS is not currently supported.

FIPS 140-2 certified modules with updates (fips-updates)
Install, configure, and enable FIPS 140-2 certified modules with updates. Enabling FIPS with updates will take the system out of FIPS compliance as the updated modules are not FIPS certified.

After successfully enabling FIPS with updates, the system MUST be rebooted. Failing to reboot will result in the system not running the updated FIPS kernel.

Disabling FIPS with updates is not currently supported.

Livepatch Service (livepatch)
Automatically apply critical kernel patches without rebooting. Reduces downtime, keeping your Ubuntu LTS systems secure and compliant.

See https://ubuntu.com/livepatch for more information.

 

REPORTING BUGS

Please report bugs either by running `ubuntu-bug ubuntu-advantage-tools` or login to Launchpad and navigate to https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+filebug

 

COPYRIGHT

Copyright (C) 2019-2020 Canonical Ltd.


 

Index

NAME
SYNOPSIS
DESCRIPTION
COMMANDS
CONFIGURATION
SERVICES
REPORTING BUGS
COPYRIGHT

This document was created by man2html, using the manual pages.
Time: 08:55:21 GMT, December 16, 2021