2 июл. 2014 г.

Profiles in WAS 7 [Windows]

This article will be about console profile manager in WAS

Run manageprofiles -help or visit Information Center at: http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-nd-dist&topic=rxml_manageprofiles

1. To list number of profiles, execute command 

manageProfiles -listProfiles
eg. 

C:\IBM\WebSphere\AppServer\bin>manageProfiles -listProfiles
2. To delete all the existing profiles, execute 
C:\IBM\WebSphere\AppServer\bin>manageProfiles.bat -deleteAll
INSTCONFSUCCESS: Success: All profiles are deleted.

Once profile is deleted, remove left directories manually. To delete directories recursively in windows use command :
rmdir /s /q 
3. Create new prfoiles including deployment managerNow this could be interesting which directory could be recommended, many user creates profiles under path WebSphere\AppServer\profiles\\, now this works without issue in unix flavor but in case if 32 bit Windows there is limitation of 255 characters in path. So many people prefer to create profiles like :\IBM\Profiles\\

Command to create new profile :
Syntax : 

manageProfiles -create -profileName -profilePath -templatePath -nodeName -cellName -hostname -serverName -startingPort 10000 -winserviceCheck 

eg : 

C:\IBM\WebSphere\AppServer\bin>manageProfiles -create -profileName AppSrv01 -profilePath C:\IBM\profiles\AppSrv01 -nodeName AppSrv01Node -cellName AppSrv01Cell -hostname localhost -serverName server -startingPort 10000 -winserviceCheck false

gives output as
INSTCONFSUCCESS: Success: Profile AppSrv01 now exists. Please consult C:\IBM\profiles\AppSrv01\logs\AboutThisProfile.txt for more information about this profile.


4. to check the ports assigned and other details for new profiles check the file at
\logs\AboutThisProfile.txt
C:\IBM\WebSphere\AppServer\bin>type \IBM\profiles\AppSrv01\logs\AboutThisProfile.txt

Using PMT to create a profile in WebSphere 7

В принципе создание профайла что в WAS 7.0 что WAS 8.5 похожи. единственное - это нужно найти где находится этот профайл менеджер.

В WAS 8.5 все просто - Start => Programs => IBM WebSphere => IBM WebSphere Application Server 8.5 => Tools => Profile Management Tool

WAS 7
Windows: ${WAS Installation}\AppServer\bin\ProfileManagement\pmt.bat
Linux: /var/apps/was7/bin/ProfileManagement/pmt.sh

click "Launch Profile Management Tool"
click "Create"

An application server environment runs your enterprise applications. WebSphere Application Server (WAS) is managed from it's own administrative console and functions independently from all other application servers.


click "Next"

Click "Advanced profile creation"



Select "Deploy the Sample applications" if you want the samples installed.



Fill in the Node, server and hostname




Click "Next" on page 2 of SSL and leave defaulted.


Adjust the ports if you need. Otherwise leave defaulted. Click "Next"

Choose whether you want to install WAS as a service.

You can create a web server definition of you wish

Click create on summary page to complete.