Upgrading CyberSource Toolkit for i
Note:
- ### is the simple version number of the target/new version level (example: 381 for v3.8.1)
- Unzip the downloaded file to C:\temp (or the directory of your choice).
- Create the *SAVF to upload to on your IBM i:
CRTSAVF FILE(QGPL/CTI###) AUT(*ALL)
- FTP the file CTI.SAVF from your PC to the IBM i. Open a DOS prompt (Start → Run → enter 'cmd' and hit enter). Type the following into the DOS prompt, replacing the IP address with that of your IBM i. When prompted, enter your IBM i username and password.
ftp 123.456.789.123
binary
lcd c:\temp
quote site namefmt 0
cd QGPL
put CTI.savf CTI###.savf
quit
- Perform a full backup of your CTI library.
- Execute the following IBM i command to upgrade the CTI library (this is all one command):
RSTOBJ OBJ(*ALL) SAVLIB(CTI) MBROPT(*ALL) ALWOBJDIF(*FILELVL *OWNER) OMITOBJ((LICP) (CTICFGENV) (CTICFGMCH) (CTICFGRPT) (CTIUNQ)) RSTLIB(CTI) DEV(*SAVF) SAVF(QGPL/CTI###)
After running the
RSTOBJ
command, useDSPJOBLOG
and press F10 to view the results of theRSTOBJ
. Make a note of any objects that failed to restore, and either delete or rename the corresponding objects from the CTI library.Once you have renamed or deleted any conflicting objects, run the
RSTOBJ
command again and confirm that there are no further errors. - Execute the following steps to rename your existing CTI configuration files:
- Rename your current CTICFGMCH file:
RNMOBJ OBJ(CTI/CTICFGMCH) OBJTYPE(*FILE) NEWOBJ(OLDCFGMCH)
- Rename your current CTICFGENV file:
RNMOBJ OBJ(CTI/CTICFGENV) OBJTYPE(*FILE) NEWOBJ(OLDCFGENV)
- Rename your current CTICFGRPT file:
RNMOBJ OBJ(CTI/CTICFGRPT) OBJTYPE(*FILE) NEWOBJ(OLDCFGRPT)
- Rename your current CTICFGMCH file:
- Execute the following IBM i command to restore the new version of the CTI configuration files to your CTI library (this is all one command):
RSTOBJ OBJ(CTICFGMCH CTICFGENV CTICFGRPT) SAVLIB(CTI) MBROPT(*ALL) ALWOBJDIF(*FILELVL *OWNER) RSTLIB(CTI) DEV(*SAVF) SAVF(QGPL/CTI###)
- Execute the following steps to copy the data from your existing CTI configuration files into the new version of the files:
- Copy data from OLDCFGMCH to your new CTICFGMCH file:
CPYF FROMFILE(CTI/OLDCFGMCH) TOFILE(CTI/CTICFGMCH) MBROPT(*UPDADD) FMTOPT(*MAP *DROP)
- Copy data from OLDCFGENV to your new CTICFGENV file:
CPYF FROMFILE(CTI/OLDCFGENV) TOFILE(CTI/CTICFGENV) MBROPT(*UPDADD) FMTOPT(*MAP *DROP)
- Copy data from OLDCFGRPT to your new CTICFGRPT file:
CPYF FROMFILE(CTI/OLDCFGRPT) TOFILE(CTI/CTICFGRPT) MBROPT(*UPDADD) FMTOPT(*MAP *DROP)
- Copy data from OLDCFGMCH to your new CTICFGMCH file:
- Execute the following IBM i command to restore updates to necessary files in the IFS (this is all one command):
RST DEV('/QSYS.LIB/CTI.LIB/IFS.FILE') OBJ(('/ktprod/cti' *INCLUDE '/ktprod/cti')) CRTPRNDIR(*YES) PRNDIROWN(QSYS) ALWOBJDIF(*ALL)
- Once you have validated the upgrade and confirmed that you are not experiencing any issues, you should remove the old versions of the CTI configuration files:
- Delete the old CTICFGMCH which was renamed to OLDCFGMCH:
DLTF FILE(CTI/OLDCFGMCH)
- Delete the old CTICFGENV which was renamed to OLDCFGENV:
DLTF FILE(CTI/OLDCFGENV)
- Delete the old CTICFGRPT which was renamed to OLDCFGRPT:
DLTF FILE(CTI/OLDCFGRPT)
- Delete the old CTICFGMCH which was renamed to OLDCFGMCH: