Objective : To demonstrate the steps to setup websphere profile using IBM Installation Manager and address some problems which usually come. Apart from this, I will also explain how to export and import websphere profile configuration from one server profile to another.
Lets jump into steps to setup websphere profile.
- To start installation, we must have IBM Id . If you don’t have IBM Id then – Get IBM ID here
- Download the IBM Installation Manager from IBM
- Downloaded either 32 or 64 bit version based on your OS
- Extract the agent.installer.win32.win32.x86_1.8.5000.20160506_1125.zip to C:IBM\IM
- Run as Administrator <IM Installation Directory>\install.exe
- Once installation is done then start the IM then you will see below screen
- Confgure HTTP Proxy if required .
To configure HTTP proxy, navigate window> preferences
- Configure Repository WAS repo over Internet: https://www.ibm.com/software/repositorymanager/V85WASDeveloperILAN WAS repo over
- Once HTTP proxy and repository configured then jump to click to install Follow installation document to installation steps.
- If you see below error to create the profile by Installation manager
- To fix above problem, you need to change one file which is at below location: <WAS Installation Directory>\bin\ProfileManagement\eclipse64\configuration\config.ini
- You will find below two lines:
1 2 |
osgi.instance.area.default=@user.home/AppData/Local/... osgi.configuration.area=@user.home/AppData/Local/... |
replace @user.home with any other directory or user home directory path, where user has write access
1 2 |
osgi.instance.area.default=C:\Users\XXXXX/AppData/Local/... osgi.configuration.area=C:\Users\XXXXX/AppData/Local/... |
- Once you made this change then run <WAS Installation Directory>\bin\ProfileManagement\pmt.bat
You will see PMT running. Good to go to create one profile.
Once the profile is created.
You have installed Websphere Profile successfully….
Now lets move to second part, which is about to import existing configuration using *.car (Configuration Archive).
Suppose we have profile’s configuration file named serverProfile.car.
- Command to import the configuration in the profile run following command
1 2 3 4 5 6 7 8 9 |
- Open command prompt as <strong><span style="color: #ff0000;">Administrator</span> </strong> - Go to <strong><span style="color: #339966;"><WAS Installation Directory>\profiles\<profileName>\bin</span> </strong> - run <span style="color: #339966;">startServer.bat server1</span> - Once server started then run <span style="color: #339966;">wsadmin</span> - you will be under wsadmin prompt like <span style="color: #339966;">wsadmin> - <span style="color: #000000;">run below</span> <span style="color: #000000;">><span style="color: #339966;">$AdminTask importWasprofile {-archive c:\tmp\serverProfile.car} </span></span>>$AdminConfig save </span> |
- Command to export configuration
1 |
<span style="color: #008000;">>$AdminTask exportWasprofile {-archive c:\tmp\sampleProfileName.car}</span> |
Conclusion:
This blog clears the steps to install, configure the websphere profile from scratch and import/export configuration from one server profile to another.