trial-license-cleaner - removes Trial licenses from nodes running IBM-ICP4D OEM portworx builds, thus resetting the license SKU back to OEM.
trial-license-cleaner [options] px-node
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
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:
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:
ssh-add $HOME/.ssh/id_rsa_XXX
command$HOME/.ssh/id_rsa
private SSH key (if available)
id_rsa
must not be password-protected-i <ssh-private-key>
can be used to point to a non password-protected SSH private key we want to use for the SSH access
-passwd <password>
can be used to specify the SSH password
-passwd ask
to be interactively prompted for passwordThe 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
)
trial-license-cleaner -v http://pxnode-hostname-or-ip:17001
)--restart
option provided, all Portworx nodes where license got corrected will be restarted; however, the restart will happen in parallel