Sunday 10 December 2017

fix pack installation on websphere using command line (imcl)

 Hi friends, Today here is one more important topic in WAS. For installing fix packs , ifixes with command line we use imcl commnd.

* During installing Products and Fixes with IBM Installation Manager, Installation Manager searches open repositories where Packages and Fixes exist. But how can you verify the applicable packages, updates, and features are in a target repository from the 
 command line?

Installation Manager provides the command line tool, imcl, to manage installation. The imcl command can be found in <IM_ROOT>/eclipse/tools subdirectory.

**Following are the commands and description for it

1] encryptString stringToEncrypt:

   Encrypt the entered string. Use the encryptString command with the -passwordKey option to increase encryption security.

2] exportInstallData outputFileName:

     Export the installation data to the specified file in a compressed file format where outputFileName is the name of the generated file that contains the exported data.

3] input response_file:

Specify a response file for silent installation with the input command.

Use the input command with these options:

    -installationDirectory
    -keyring: This option is deprecated.
    -masterPasswordFile: Use with the -secureStorageFile storage_file -masterPasswordFile master_password_file option.
    -password: This option is deprecated.
    -prompt
    -secureStorageFile
    -variables

install packageID[_version][,featureID]

Use the install command with these options:

    -acceptLicense
    -connectPassportAdvantage
    -eclipseLocation
    -installationDirectory
    -installFixes
    -keyring: This option is deprecated.
    -masterPasswordFile: Use with the -secureStorageFile option.
    -password: This option is deprecated.
    -preferences
    -prompt
    -properties
    -repositories
    -secureStorageFile
    -sharedResourcesDirectory
    -useServiceRepository

Do not use the install command with these commands:

    import
    input
    modify
    rollback
    uninstall
    uninstallAll
    updateAll

4] listAvailableFixes packageID_version:

    Print information to the console about the available fixes for the specified package.
  
    Use the listAvailableFixes command with these options:

    -connectPassportAdvantage
    -keyring: This option is deprecated.
    -long
    -masterPasswordFile: Use with the -secureStorageFile option.
    -password: This option is deprecated.
    -prompt
    -preferences
    -repositories
    -secureStorageFile
    -showPlatforms
    -useServiceRepository

5] listAvailablePackages:

    Print information to the console about the available packages.

6] listInstallationDirectories:

    Print information to the console about the installation directory, the shared resources directory, the name of the package group, and installed translations.

7] listInstalledPackages:

    Print information to the console about the installed packages.

**More commands are there. But we use mostly above commands.

**Below are some commands with example:


1] How to verify the installed packages

Use command: "imcl listInstalledPackges" to view a list of packages that are already installed by the Installation Manager.

Windows: imcl.exe listInstalledPackages
AIX, HP-UX, Linux, Solaris: imcl listInstalledPackages

Example:
 ./imcl listInstalledPackages
com.ibm.websphere.ND.v80_8.0.3.20120320_0536
com.ibm.websphere.WCT.v80_8.0.5.20121022_1902
com.ibm.websphere.PLG.v80_8.0.6.20130328_1645
com.ibm.websphere.IHS.v80_8.0.5.20121022_1902


If you would like to verify more details like version, features, installed fixes, and rollback versions, run the command with the "-verbose "option.

Example:
./imcl listInstalledPackages -verbose

2] How to verify the installable packages

Use command: "imcl listAvailablePackages" to list the packages that are installable to the existing products.

Windows: imcl.exe listAvailablePackages -repositories [source_repository]
AIX, HP-UX, Linux, Solaris: imcl listAvailablePackages -repositories [source_repository]

Example:
 ./imcl listAvailablePackages -repositories /usr/IBMWASREPO
com.ibm.websphere.BASE.v85_8.5.5001.20131018_2242
com.ibm.websphere.BASE.v85_8.5.5002.20140408_1947

**Uninstalling packages by using imcl

Uninstall packages from the tools directory by using Installation Manager command line (imcl) uninstall commands.
Before you begin

•To identify the package_id_version,feature_id, run the listAvailablePackages command.

Procedure
To uninstall a package by using imcl:
1) Navigate to the tool directory
2) Run the uninstall command: using imcl

    imcl uninstall package_id_version,feature_id -installationDirectory installation_directory

List the Installed packages to verify the packages you want to uninstall
3] List the directories where the Websphere Packages are installed:
example:
  [root@wasnode tools]# ./imcl listInstallationDirectories
/opt/IBM/WebSphere/AppServer

4]  Launch the uninstall option for imcl command line:

Example:
[root@wasnode tools]# ./imcl uninstall com.ibm.websphere.ND.v85_8.5.5003.20140730_1249 com.ibm.websphere.IBMJAVA.v70_7.0.4001.20130510_2103 -installationDirectory /opt/IBM/WebSphere/AppServer

5] Validate it using “imcl listInstalledPackages” to ensure the WAS packages are removed:

  example:

[root@wasnode tools]# ./imcl listInstalledPackages
com.ibm.cic.agent_1.6.2000.20130301_2248

**Install of Websphere ND 8.5 using imcl command line

Command: ./imcl install
To install the Product using imcl command you need to use “install” Option of imcl
a) Ensure all the prerequisites are satisfied like space , permission etc
b) Extract the WAS binaries in the server which you have downloaded
c) Execute the “imcl listAvailablePackages “ in the repository to validate the packages

example:
[root@wasnode tools]# cd /opt/IBM/InstallationManager/eclipse/tools
[root@wasnode tools]# ./imcl listAvailablePackages -repositories /IBMSoftware/was8.5_IHS_8.5/was8.5.5/WASND
com.ibm.websphere.ND.v85_8.5.5000.20130514_1044

2]  Execute “imcl install” to Install the WAS ND Packages “com.ibm.websphere.ND.v85_8.5.5000.20130514_1044″

Example:
[root@wasnode tools]#./imcl install com.ibm.websphere.ND.v85_8.5.5000.20130514_1044 -repositories /IBMSoftware/was8.5_IHS_8.5/was8.5.5/WASND -installationDirectory /opt/IBM/WebSphere/AppServer -acceptLicense -sP

3] Similarly you can install the SDK 7 Package too:

Example:

[root@wasnode tools]# ./imcl listAvailablePackages -repositories /IBMSoftware/was8.5_IHS_8.5/was8.5.5/SDK
com.ibm.websphere.IBMJAVA.v70_7.0.4001.20130510_2103
com.ibm.websphere.liberty.IBMJAVA.v70_7.0.4001.20130510_2103
[root@wasnode tools]#[root@wasnode tools]# ./imcl install com.ibm.websphere.IBMJAVA.v70_7.0.4001.20130510_2103 -repositories /IBMSoftware/was8.5_IHS_8.5/was8.5.5/SDK -installationDirectory /opt/IBM/WebSphere/AppServer -acceptLicense -sP

4]List the Installed packages to verify the packages you have installed:

Example:
[root@wasnode tools]# ./imcl listInstalledPackages
com.ibm.cic.agent_1.6.2000.20130301_2248
com.ibm.websphere.IBMJAVA.v70_7.0.4001.20130510_2103
com.ibm.websphere.ND.v85_8.5.5003.20140730_1249

5] List the directories where the Websphere Packages are installed:

Example:
[root@wasnode tools]# ./imcl listInstallationDirectories
/opt/IBM/WebSphere/AppServer

Finally After installation you can check ./versioninfo.sh on path  "cd /opt/IBM/WebSphere/AppServer/bin/"

1 comment:

  1. How can we check installed fix packs of PIM access agent in windows. IS there any way?

    ReplyDelete