Showing posts with label config engine. Show all posts
Showing posts with label config engine. Show all posts

Thursday, October 24, 2013

Deploy Theme static resources using configengine with out using webdav client

This config engine task is used to deploy theme static resources to webdav folders without actually using webdav client. (useful when promoting from dev to test or prod environments for administrators).

To deploy theme using Configuration task create a zip file with all your static resources organized by type in to folders. lets call it testtheme.zip









and copy this zip file to a temp folder on your server.

and execute the following command based on your operating system.

./ConfigEngine.sh webdav-deploy-zip-file -DTargetURI=dav:/fs-type1/themes/ 
     -DZipFilePath=/tmp/testtheme.zip
 
./ConfigEngine.bat webdav-deploy-zip-file -DTargetURI=dav:/fs-type1/themes/ 
     -DZipFilePath=/tmp/testtheme.zip
 you should also pass 
  • WasUserid The WebSphere® Application Server user ID
  • WasPassword The WebSphere Application Server password
  • PortalAdminId The portal administrator user ID
  • PortalAdminPwd The portal administrator password 
 as parameters if these values are not already specified in wkplc.properties file. 
 
webdav-deploy-zipfile task by default will replace the existing contents of the specified
target folder with the contents in the zip file. if you want to avoid accidentally deleting
any of the necessary files/folders use optional UpdateMode paramater with value as merge
so that this taks will merge the contents of the zip file with the content thats already 
there in the target folder.  

the resulting command should me something like this.

./ConfigEngine.sh webdav-deploy-zip-file -DTargetURI=dav:fs-type1/themes 
-DZipFilePath=/tmp/testTheme.zip -DUpdateMode=merge
 
 
this task can also be used to deploy skins,iwidgets and layouts also using these
below values for  -DTargetURI
 

dav:fs-type1/layout-templates/
dav:fs-type1/iwidgets/myWidget/
dav:fs-type1/skins/
 
 

Wednesday, February 1, 2012

How to Install Portal Mobile Theme

Installing the IBM WebSphere Portal Mobile Experience:
1. Download Solutions Installer from the catalog:
    IBM WebSphere Portal Solution Installer
    https://greenhouse.lotus.com/plugins/plugincatalog.nsf/assetDetails.xsp?action=editDocument&documentId=3E21DDAB3EE4DC598525775E00576826
2. Download Portal_mobile_experience_v1.1.zip from catalog
3. Locate the mobile_theme.paa included with the IBM WebSphere Portal Mobile
   Experience catalog package.
4. From the ConfigEngine prompt, run this command to install the .paa file
   Windows: ConfigEngine install-paa -DPAALocation=<mobile_theme.paa location>
              -DofferingName=PortalServer
   Linux: ./ConfigEngine.sh install-paa -DPAALocation=<mobile_theme.paa location>
              -DofferingName=PortalServer

after completing the command successfully you will see the below result in your command window

5. From the ConfigEngine prompt, run this command to configure the .paa file
   Windows: ConfigEngine deploy-paa -DappName=theme -DofferingName=PortalServer
             -DhostInJMX=<Portal Hostname>
   Linux: ./ConfigEngine.sh deploy-paa -DappName=theme -DofferingName=PortalServer
             -DhostInJMX=<Portal Hostname>       
6. After the deployment is successful, restart WebSphere® Portal.

How to Install IBM Content Template Catalog V3

The Content Template Catalog v3 (CTC3) is a set of templates that are used to accelerate the process of building a website with IBM Web Content Manager and IBM WebSphere Portal..


Pre requisites:-
Portal Solution Installer version 1.2.0.4+ must be configured and installed before
running any of the installation scripts. The Solutions Installer can be obtained from
the the IBM® Lotus and WebSphere Portal Business Solution Catalog
(https://greenhouse.lotus.com/catalog/). and the PAA offering directory should be set up and registered with Config Engine.
◦ IBM® WebSphere Portal 7.0.0.1 plus Combined Cumulative Fix 008 or higher
must be installed, and can be obtained through the WebSphere Portal
Recommended Updates Page (https://www-304.ibm.com/support/docview.wss?uid=swg24027857)

Download CTCInstall.zip from https://greenhouse.lotus.com/catalog/ to the server you want to install CTC and extract it to a temporary location.

now open ctc.properties file and configure your {wp_Profile} location and the type of installation you want to do.

then open command prompt and run ctc-install.bat
after the command ran successfully you should see the the below screen in your command window.







Restart the portal server. and navigate to portal  you should see CTC page created at the root level if you installed Demo content as shown in the figure below.

How to install Websphere Portal Solution Installer.

The IBM WebSphere Portal Solution Installer used for installing, uninstalling and updating solutions or applications to WebSphere Portal Server.
The Solution Installer is used to install applications which are in the PAA format 

I downloaded the latest version of Solution installer  (SolutionInstaller_1.2.0.4.zip)  from

and unpacked to C:\IBM\ and the directory structure is as shown below.


Prior to installing the latest version of Solution installer uninstall the pervious verisons if exists.

navigate to {wp_profile}/ConfigEngine/Properties and open wkplc.properties file.

and update the values of WasPassword and PortalAdminPwd with your password. 

*note:- you can also pass the relevant properties on the command line while running Solution Installer tasks as shown in here in the example ‘-DWasPassword=<pwd>

now Navigate to {solution Installer root}/commands/{os folder}/ 
and open settings.properties. and set the profile root as shown in the below example. 

Profile_Directory=C:\IBM\WebSphere\wp_profile

now open the command prompt and to to {solution Installer root}/commands/{os folder}/
and run install-SolutionInstaller.bat/sh command which ever is appropriate for your Operating system. 

after the command ran successfully you should see like the picture below
 
also you can verify solution installer installed successfully by going to {wp_profile}/configEngine and open registry.xml file and search for solution installer. 


Once the Solution installer is installed successfully you have to  setup PAA offering directory and  register it with ConfigEngine. as described below
 
a. Open a command line prompt and go to the ConfigEngine directory. For example,
C:\IBM\WebSphere\wp_profile\ConfigEngine.
b. Enter and run the following command: ConfigEngine.bat si-setup.
c. Restart portal server

the out put of the command if ran successfully is as shown below

 
a new folder paa will be created in your  websphere installation location as shown below
 

once the paa folder is created you are ready to install any applications that are created in paa format.