Monday, March 8, 2010

How to install an application onto websphere or wps using a script?

Reference Link:

http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/txml_deployapp.html

Steps:

- copy the ear file to some staging directory ex: /home/wpsadmin

- cd to profile root bin. ex: /opt/ibm/WebSphere/ProcServer/profiles/DEV01/bin

- run wsadmin as below

./wsadmin.sh

- use the jacle script to install the app using default values (when there is only one cell/node/server)

$AdminApp install "/home/wpsadmin/HelloWorldProcessApp.ear"

for a specific server use the following

$AdminApp install "/home/wpsadmin/HelloWorldProcessApp.ear" {-node dvlpsij01Node01 -cell dvlpsij01Node01Cell -server server1}

for a specific cluster use the following

$AdminApp install "/home/wpsadmin/HelloWorldProcessApp.ear" {-cluster clustername}

- uninstall the app from default server (assuming there is only one server). pl note there is no .ear at the end of the app name, just the name.

$AdminApp uninstall HelloWorldProcessApp

for a specific server use the following

$AdminApp uninstall HelloWorldProcessApp {-node dvlpsij01Node01 -cell dvlpsij01Node01Cell -server server1}

for a specific cluster use the following

$AdminApp uninstall HelloWorldProcessApp {-cluster clustername}



This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system.

Posted via email from shaker's posterous

0 comments: