How to reactivate an expired Portworx licence

In this post I will share how we can check the status of our Portworx licence, and if expired how we can reactivate it.

Portworx Status

Let’s start by checking the status of our Portworx licence, we can do this with the Portworx CLI (command line interface) pxctl status command.

[root@node-1-1 ~]# pxctl status
Status: PX is operational
License: Trial (expired 11d, 10h, 37m ago)
...

From the above I can see my Portworx licence has expired, this raised an ‘Alarm’, which we can see using pxctl alterts show.

[root@node-1-1 ~]# pxctl alerts show
Type ID Resource       Severity Count LastSeen                 FirstSeen                Description 
CLUSTER LicenseExpired ALARM        2 Dec 18 06:01:50 UTC 2020 Dec 13 05:59:50 UTC 2020 Trial license expired 5 days, 6:01 ago 

Portworx Licence

So I have identified that I have an expired Portworx licence, this is easily fixed with the Portworx CLI pxctl license command.

Let’s check-out the syntax and options available to pxctl license.

[root@node-1-1 ~]# pxctl license -h
Manage licenses

Usage:
  pxctl license [flags]
  pxctl license [command]

Available Commands:
  activate    Activate license from a license server
  add         Add a license from a file
  list        List available licenses
  setls       Set license server
  transfer    Transfer license to remote PX cluster
 
Flags:
  -h, --help   help for license

Global Flags:
      --ca string        path to root certificate for ssl usage
      --cert string      path to client certificate for ssl usage
      --color            output with color coding      
      --config string    config file (default is $HOME/.pxctl.yaml)
      --context string   context name that overrides the current auth context
  -j, --json             output in json
      --key string       path to client key for ssl usage
      --raw              raw CLI output for instrumentation
      --ssl              ssl enabled for portworx
 
Use "pxctl license [command] --help" for more information about a command.

License list

Using the above syntax let’s check our licence details with pxctl license list command

[root@node-1-1 ~]# pxctl license list
DESCRIPTION       ENABLEMENT                          ADDITIONAL INFO
... 
Product SKU       Trial                               expired 11d, 10h, 20m ago

LICENSE EXPIRES: 2020-12-12 23:59:59 +0000 UTC
For information on purchase, upgrades and support, see
https://docs.portworx.com/knowledgebase/support.html

From the pxctl license list command we can check the status, type and which features are included within our Portworx licence.

Licence Reactivation

We can reactivate our Portworx licence with the pxtctl license activate command and check our new expiration date using pxtctl license list.

[root@node-1-1 ~]# pxctl license activate xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx
Successfully activated license.
[root@node-1-1 ~]# pxctl license list
DESCRIPTION       ENABLEMENT                          ADDITIONAL INFO
...
Product SKU       PX-Enterprise extended evaluation   expires in 179 days
 
LICENSE EXPIRES: 2021-06-21 23:59:59 +0000 UTC
For information on purchase, upgrades and support, see
https://docs.portworx.com/knowledgebase/support.html

We can see this updated the pxctl status

[root@node-1-1 ~]# pxctl status
Status: PX is operational
License: PX-Enterprise extended evaluation (expires in 179 days)

The licence status change raises an ‘notification’ which we can see using pxctl alerts show.

[root@node-1-1 ~]# pxctl alerts show
Type    ID                    Resource  Severity Count LastSeen                 FirstSeen       Description 
CLUSTER ClusterLicenseUpdated px-deploy-1 NOTIFY     1 Dec 24 10:53:53 UTC 2020 Dec 24 10:53:53 UTC 2020 Cluster license activated using ActivationID xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx

Summary

In this post I have shown how we can check and manage the status of our licence using the Portworx command line interface.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a website or blog at WordPress.com

Up ↑

%d bloggers like this: