[ start | index | login ]
start > Development > Java & J2EE > Websphere

Websphere

Created by mpecher. Last edited by mpecher, 3 years and 145 days ago. Viewed 2,234 times. #13
[diff] [history] [edit] [rdf]
labels
attachments

Related Topics:


Portal  |   TAM  |   WEBSeal  |   WASConsole  |   IBM HTTP Server  |   Versions  |   Java 2 Security

Sever Starting/Stopping from command line

Login to the machine that the server is on as the wasadmin user.
source /opt/WebSphere/AppServer/bin/setupCmdLine.sh first, then:
	/opt/WebSphere/AppServer/bin/startServer.sh <SEVERNAME>
or	/opt/WebSphere/AppServer/bin/stopSever.sh <SEVERNAME>

eg. /opt/WebSphere/AppServer/bin/stopSever.sh WAS01

Node Agent Starting/Stopping

For Network Deployment manager to be able to manage or get any information about a node, the Node Agent on that machine needs to be started. To do so, need to login as wasadmin on the machine where the node is to be started and
source /opt/WebSphere/AppServer/bin/setupCmdLine.sh first, then:
	/opt/WebSphere/AppServer/bin/startNode.sh
or	/opt/WebSphere/AppServer/bin/stopNode.sh

Network Deployment Manager Starting/Stopping

Need to login as wasadmin onto the ND Box (where the WASConsole is), and
source /opt/WebSphere/DeploymentManager/bin/setupCmdLine.sh first, then:
	/opt/WebSphere/DeploymentManager/bin/startManager.sh
and
	/opt/WebSphere/DeploymentManager/bin//stopManager.sh

Killing Server Processes

Sometimes a server or node may not respond to a stop command. In this case if may be necessary to kill all the java processes on the box. If this is done, we need to ensure to also clean up the transaction and recovery logs for the server.

Killing the server

As root:
killall -9 java

Cleaning up transaction and recovery logs

Delete all files from on the Portal Hosts under:

? /opt/Websphere/Appserver/translogs and
? /opt/Websphere/Appserver/recoverylogs.
As wasadmin:

cd /opt/Websphere/Appserver/translogs
rm ?rf *
cd /opt/Websphere/Appserver/recoverylogs
rm ?rf *

See WASConsole ND/WASConsole info.

DumpNameSpace

To get the JNDI on a websphere box (port is found through wasconsole-server-endpoints-bootstrap)
$WAS_HOME/bin/dumpNameSpace.sh -host localhost -port 9811
(username/password is the wasconsole one)
no comments | post comment

Menu:
Java & J2EE
Development
Books

Help:
Help FAQ
Formatting


< March 2010 >
SunMonTueWedThuFriSat
123456
78910111213
14151617181920
21222324252627
28293031


Logged in Users: (1)
… and 250 Guests.



Disclaimer: Views and opinions are that of the individual author, and not that of Marand Custom Solutions. This site is an open forum for technical content, and the company accepts no liability for any content or view expressed.