trial-license-cleaner

NAME

trial-license-cleaner - removes Trial licenses from nodes running IBM-ICP4D OEM portworx builds, thus resetting the license SKU back to OEM.

SYNOPSIS

trial-license-cleaner [options] px-node

Description

This tool is designed primarily to be ran proactively, to check the licenses before each px-2.3.1.1 to px-2.5.0.1 cluster upgrade, but it could also be used interactively to clean up Trial licenses on already upgraded px-2.5.0.1 clusters.

The tool has the following usage:

Usage: trial-license-cleaner [options] px-node

SSH options:
  -l <user>          Specifies the user to log in as on the remote machine  (default: $LOGNAME)
  -i <pkey-file>     Selects a file from which the identity (private key) for public key authentication is read
  --passwd <secret>  Specify password to log in as on the remote machine (use '--passwd ask' for interactive prompt)
  -p <port>          Specify ssh service port  (default: 22)

Misc options:
  -d <dir>           Specifies portworx binaries directory (default "/opt/pwx")
  -E <dir>           Specifies portworx configuration directory (default "/etc/pwx")
  --restart          Restart portworx services where license modified  (warn: all nodes in parallel)
  -v, --verbose      Verbose output
  -V, --version      Print version
  -h, --help         Print this help

EXAMPLES:
  trial-license-cleaner -l root -i $HOME/.ssh/id_rsa_deploy pxnode.company.com
  trial-license-cleaner -l root -v --passwd ask http://pxnode.company.com:9001

Requirements

The tool does not need to “run locally” on the node running Portworx, but will require remote access to nodes in the Portworx cluster. More specifically:

  1. Tool requires SSH access to all the hosts running Portworx, and
  2. Require network access to a (single) node running Portworx REST service.

Required SSH access

The remote user needs to be able to run the sudo commands on the remote nodes of the portworx cluster.

The supported SSH-access methods:

Required access to Portworx REST service

The tool requires network access to one Portworx node from the cluster, therefore at last one node needs to be running Portowrx service. The node IP or hostname is added as the last parameter to the command.

By default, the tool will target Portworx REST service running on http://pxnode-hostname-or-ip:9001. For clusters running OpenShift 4.3 (or higher), please use port 17001 (e.g. trial-license-cleaner http://pxnode-hostname-or-ip:17001)

Known Limitations