Updating pattern types by using the command-line interface

Periodic updates are available for pattern types.

Before you begin

You can download updates from IBM® Fix Central and then import the updated pattern type to Cloud Pak System Software by using the command-line interface.

Before patterns can be updated, you must upgrade Cloud Pak System Software with the latest system update maintenance.

IBM Foundation Pattern must be updated before any other pattern types can be updated. If you update the IBM Web Application Pattern, you must also update the DB2® with BLU Acceleration Pattern.

About this task

Use the command-line interface to complete this task.

Procedure

  1. Download the latest version of the pattern type *.tgz file from Fix Central to the /tmp directory on a Linux or UNIX system.
  2. Log in to the console with the IP address: http://systemIP.
  3. Download the command-line interface. You can download the command-line interface from the Welcome page. Click Download Tooling > Download command line tool on the Welcome page. Download the command-line interface to the /tmp directory.
  4. Extract the command-line interface with the unzip command:
    #cd /tmp
    #unzip deployer.cli*.zip
  5. Log in to the system:
    #cd deployer.cli/bin
    #./deployer -h System_IP -u Admin_ID -p Admin_PW
    where
    • System_IP is the IP address/host name of your system
    • Admin_ID is the administrator ID of your system
    • Admin_PW is the administrator password of your system
  6. The command-line interface displays the following prompts:
    Welcome to the IBM Cloud Pak System CLI. Enter 'help' if you need help getting started.
    >>>
  7. Run the following command to update the type. Ensure that you specify the correct location of the pattern type .tgz file, or the command fails.
    The file names for the pattern types are:
    • webapp-x.x.x.x.tgz
    • foundation-x.x.x.x.tgz
    • dbaas-x.x.x.x.tgz
    • javaapp-x.x.x.x.tgz
    Replace x.x.x.x with the appropriate version number.
    1. Type the following command:
      >>>deployer.patterntypes.create("/tmp/ptype-x.x.x.x.tgz")
      Replace ptype-x.x.x.x with the appropriate pattern type file name and version number.
    2. Click Enter to submit the command. The following information is displayed:
      {
      	"description": "DESCRIPTION".
      	"name": "NAME".
      	"shortname": "ptype".
      	"status": "avail".
      	"version": "x.x.x.x"
      }
      
      >>>exit
      where ptype is the pattern type name and x.x.x.x is the version number.