Updating your environment variables script (Upgrading from Version 5.0.x to a later 5.0 refresh)

The commands for upgrading IBM Cloud Pak for Data use variables with the format ${VARIABLE_NAME}. Ensure that your environment variables script includes the correct information for the instance of Cloud Pak for Data that you want to upgrade.

Upgrade phase
  • You are not here. Updating your client workstation
  • You are here icon. Collecting required information
  • You are not here. Preparing to run an upgrade in a restricted network
  • You are not here. Preparing to run an upgrade from a private container registry
  • You are not here. Upgrading prerequisite software
  • You are not here. Upgrading shared cluster components
  • You are not here. Preparing to upgrade an instance of Cloud Pak for Data
  • You are not here. Upgrading an instance of Cloud Pak for Data
Who needs to complete this task?

Cloud Pak for Data operations team The IBM Cloud Pak for Data operations team should work with the cluster administrator to compile information about the cluster where Cloud Pak for Data is installed.

When do you need to complete this task?

Repeat as needed If you have multiple instances of Cloud Pak for Data on the cluster and you maintain separate scripts for each instance, update the script for each instance that you plan to upgrade.

Editing your environment variables file

  1. Open your existing environment variable shell script in a text editor.
  2. Locate the VERSION entry and specify the version of Cloud Pak for Data that you want to upgrade to. For example:
    export VERSION=5.0.3
  3. If needed, update the COMPONENTS variable.

    Confirm that the list of service components is accurate.

  4. Save your changes.
  5. Confirm that the script does not contain any errors. For example, if you named the script cpd_vars.sh, run:
    bash ./cpd_vars.sh

Sourcing the environment variables

You must run the script from a bash prompt before you run the installation and upgrade commands. The script exports the environment variables to your command-line session.

Important: You must re-run the script each time you open a new bash prompt.
  1. Change to the directory where you saved the script.
  2. Source the environment variables. For example, if you named the script cpd_vars.sh, run:
    source ./cpd_vars.sh

What to do next

Now that you've updated the environment variables in your script, you're ready to complete Preparing to run IBM Cloud Pak for Data upgrade commands in a restricted network (Upgrading from Version 5.0.x to a later 5.0 refresh).