Upgrading the BMC AMI Cloud agent
Before you begin
Verify that the agent’s installation prerequisites are met. For more information, see BMC-AMI-Cloud-agent-requirements.
Verify that the z/OS Java is version 8 64-bit SR6 FP25 or later. Using an earlier Java version would result in an agent startup failure with message number ZM91005E.
Verify the Java version and change the Java installation directory by using the following commands:
./java -version
java version "1.8.0_281"
Java(TM) SE Runtime Environment (build 8.0.6.25 - pmz6480sr6fp25-20210115_01(SR6 FP25))
IBM J9 VM (build 2.9, JRE 1.8.0 z/OS s390x-64-Bit Compressed References 20201218_462060 (JIT enabled, AOT enabled)
OpenJ9 - 4c03b71
OMR - 86a8e1a
IBM - 8c30c56)
JCL - 20210108_01 based on Oracle jdk8u281-b09
Task 1: To obtain the installation files
Skip this task if you have already downloaded the installation files and obtained a license key as explained in Upgrading-the-management-server-on-Linux or Upgrading-the-management-server-on-zCX.
Go toElectronic Product Distribution (EPD) and log in.
- Using the search bar, search for either BMC AMI Cloud Data or BMC AMI Cloud Vault. Both product files are composed with the same binaries.
- Click on version that you want to download.
- On the Product tab, select the files and click Download.
Task 2: To upload the agent TAR file to the installation directory
Use FTP or a similar utility to upload the BMC AMI Cloud agent’s installation tar file to the BMC AMI Cloud agent’s installation directory. Use Passive Mode if it's supported by the FTP client. The tar file must be uploaded in binary mode, as shown in the following example:
Connected to mf-lp1.
220-FTPD1 IBM FTP CS V2R2 at mf-lp1, 06:20:40 on 2017-02-23.
220 Connection will not timeout.
Name (mf-lp1:m9user): m9u
331 Send password please.
Password:
230 M9U is logged on. Working directory is "M9U.".
Remote system type is MVS.
ftp> cd /usr/lpp/model9/
250 HFS directory /usr/lpp/model9/ is the current working directory
ftp> bin
200 Representation type is Image
ftp> put model9-v3.3.0_build_04f4c6c-agent.tar
local: model9-v3.3.0_build_04f4c6c-agent.tar remote:model9-v3.3.0_build_04f4c6c-agent.tar
229 Entering Extended Passive Mode (|||1026|)
125 Storing data set /usr/lpp/model9-v3.3.0_build_04f4c6c-agent.tar
250 Transfer completed successfully.
xxxxxx bytes sent in 00:02 (1.95 MiB/s)
ftp> quit
221 Quit command received. Goodbye.
Task 3: To upgrade the agent binaries
In OMVS, extract the tar file and replace the agent symbolic link with a reference to the new directory, as shown in the following example:
cd /usr/lpp/model9/
tar -xpf model9-v3.3.0_build_04f4c6c-agent.tar
rm agent
ln -s model9-v3.3.0_build_04f4c6c-agent agent
Task 4: To copy the BMC AMI Cloud libraries from USS to PDS and modify
Edit and submit the JCL CPY#PDS located in /usr/lpp/model9/agent/installation to create the BMC AMI Cloud LOADLIB, SAMPLIB, and EXEC PDS files.
After the successful completion of CPY#PDS, update the following SAMPLIB PDS members:
Modify M9AGENT:
Update | Description |
---|---|
DD STEPLIB | BMC AMI Cloud installation LOADLIB |
PWD environment variable | BMC AMI Cloud agent’s installation path |
Optional parameters for M9AGENT:
Update | Description |
---|---|
CONF_HOME environment variable | BMC AMI Cloud agent’s configuration directory path |
Use the CONF_HOME parameter to activate more than one agent in the same LPAR. This parameter allows the agents to use the same BMC AMI Cloud installation files and libraries, but each will have a different configuration directory. The recommendation is to have one agent per LPAR, while all agents in the same GRS complex point to the same BMC AMI Cloud complex. However, additional agents in the same LPAR might be required if the following conditions exist:
- You are using a subplex.
- You are running both development and production environments.
- You are pointing different agents to different cloud storage.
The CONF_HOME parameter must precede the stdenv-main.sh statement. The following is an example of using the parameter:
export PWD=/usr/lpp/model9/agent
export CONF_HOME=$PWD/../conf
export ENV=agent
. $PWD/scripts/stdenv-main.sh
//
Modify M9SAPI:
Update | Description |
---|---|
M9PATH | BMC AMI Cloud agent’s installation path |
Modify M9LIFECY:
Update | Description |
---|---|
DD STEPLIB | BMC AMI Cloud installation LOADLIB |
PWD environment variable | BMC AMI Cloud agent’s installation path |
Copy M9AGENT, M9SAPI, M9LIFECY to your local libraries and reapply site modifications.
Task 5: To upgrade the BMC AMI Cloud Command Line Interface
Customize the M9CLI REXX in the EXEC PDS to match installation standards:
loaddir = "SYS2.MODEL9.V330.LOADLIB"
Copy the M9CLI EXEC to a site standard local EXEC library concatenated in the logon procedure.
Task 6: To update the BMC AMI Cloud agent configuration files
If you are upgrading from a version earlier than 2.6.xx, and the autorecall.functionality.enabled was set within the agent.yml configuration file, the parameter name was changed to a new name to match its actual meaning. The new parameter name is xcf.functionality.enabled and its default value is true. For more details about the agent's parameters, see Installing-the-BMC-AMI-Cloud-agent.
Task 7: To upgrade automatic recall
Use the sample JCL M9UNHOOK to uninstall the previous intercept. The expected RC is 0:
S M9UNHOOKIf another intercept was installed on top of the BMC AMI Cloud intercept, the uninstall process finishes with RC=4. In this case, the BMC AMI Cloud intercept is not removed but rather logically disabled, to prevent harming the subsequent intercept. This is a valid situation that will be corrected by the next IPL. You can also remove the top intercept and then remove the BMC AMI Cloud intercept again.
- Replace the previously installed release and update the PROGxx configuration as follows:
Add the following statements, replacing <VOLSER> with the relevant volume name:
APF ADD DSNAME(SYS2.MODEL9.V330.LOADLIB) VOLUME(<VOLSER>)
LPA ADD DSNAME(SYS2.MODEL9.V330.LOADLIB) MOD(ZM9CPTN)
LPA ADD DSNAME(SYS2.MODEL9.V330.LOADLIB) MOD(ZM9S26X)- Use the SET PROG=XX operator command to apply the changes.
- Verify that the command has ended successfully.
- Loas the intercept and exit modules to the Dynamic LPA. Do not use MLPA or PLPA to load the modules.
Install the feature by copying M9HOOK from the SAMPLIB PDS to a local PROCLIB member. Customize and activate the intercept using the following command. The expected RC is 0:
S M9HOOKIf you are using another data management product together with BMC AMI Cloud Data, add the following DD statement to the other product procedure to avoid collisions:
//ZM9$NORC DD DUMMY- After applying the DD, restart the address space.
Task 8: To stop the previous agent
Run the following command:
(Optional) Task 9: To upgrade Cloud Data Sets
If you already started using Cloud Data Sets (CDSs), perform the following procedure to upgrade the CDS feature:
Vary the CDS virtual devices offline:
V xxxx-yyyy,OFFLINEMake sure that all devices are OFFLINE:
D U,,,xxxx,nnStop the VDEV started task by running the following command:
P M9VDEVEdit M9UNICDS (SAMPLIB) according to instructions and run CDS uninstall as follows:
S M9UNICDSRemove OCE exit definitions by using the SETPROG command:
SETPROG EXIT,DELETE,EXITNAME=OCE_VOLUMEMOUNT,MOD=ZM9OCEX4
SETPROG EXIT,DELETE,EXITNAME=OCE_FILESTART,MOD=ZM9OCEX4
SETPROG EXIT,DELETE,EXITNAME=OCE_FILEEND,MOD=ZM9OCEX4
SETPROG EXIT,DELETE,EXITNAME=OCE_FILEVALIDATE,MOD=ZM9OCEX4
SETPROG EXIT,DELETE,EXITNAME=OCE_LABELANOMALY,MOD=ZM9OCEX4Update the CDS exit modules in LPA by using SETPROG:
SETPROG LPA,ADD,MOD=ZM9019CW,DSN=SYS2.MODEL9.V330.LOADLIB
SETPROG LPA,ADD,MOD=ZM9019CC,DSN=SYS2.MODEL9.V330.LOADLIB
SETPROG LPA,ADD,MOD=ZM9OCEX4,DSN=SYS2.MODEL9.V330.LOADLIBAdd the OCE exits by running the following commands:
SETPROG EXIT,ADD,EXITNAME=OCE_VOLUMEMOUNT,MOD=ZM9OCEX4,ABENDNUM=(100,CONSEC)
SETPROG EXIT,ADD,EXITNAME=OCE_LABELANOMALY,MOD=ZM9OCEX4,ABENDNUM=(100,CONSEC)
SETPROG EXIT,ADD,EXITNAME=OCE_FILEVALIDATE,MOD=ZM9OCEX4,ABENDNUM=(100,CONSEC)
SETPROG EXIT,ADD,EXITNAME=OCE_FILEEND,MOD=ZM9OCEX4,ABENDNUM=(100,CONSEC)
SETPROG EXIT,ADD,EXITNAME=OCE_FILESTART,MOD=ZM9OCEX4,ABENDNUM=(100,CONSEC)Edit M9INSCDS according to the instructions of the new SAMPLIP and run CDS install as follows:
S M9INSCDSEdit M9VDEV according to the instructions of the new SAMPLIB and start it.
Make sure that you change the VOLPREF parameter to the new prefix (For example, MA):S M9VDEVVary the virtual device range online:
V xxxx-yyyy,ONLINEMake sure that all devices are online:
D U,,,xxxx,nnVary the BMC AMI Cloud library online:
V SMS,LIB(M9MTL),ONLINEEdit the agent.yml parameters that control the enabled applications for the CDS.
The new default values should be set as follows:cloud_datasets.supported_read_utility_name_pattern: "(IEBGENR)|(IEBGENER)|(DSNUTILB)|(IEBCOPY)|(IDCAMS)"
.cloud_datasets.supported_write_utility_name_pattern: "(IEBGENR)|(IEBGENER)|(DSNUTILB)|(IEBCOPY)|(IDCAMS)"
Task 10: To define the BMC AMI Cloud loadlib as program-controlled
If you are using the PROGRAM class, define the BMC AMI Cloud loadlib as program controlled:
RALT PROGRAM * ADDMEM('SYS2.MODEL9.V330.LOADLIB'//NOPADCHK)
PERMIT * CLASS(PROGRAM) ID(M9USER) ACC(READ)
SETR WHEN(PROGRAM) REFRESH
Task 11: To start the agent
Start the agent from any console by issuing the following command:
S M9AGENTVerify that the agent was started successfully. The following messages should appear:
ZM91002I MODEL9 BACKUP AGENT VERSION 3.3.0 INITIALIZING
ZM91000I MODEL9 BACKUP AGENT INITIALIZEDVerify that the agent is connected to the object storage by searching for the following message in STDOUT:
Object store connectivity has been established successfully