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

Websphere

Created by mpecher. Last edited by mpecher, 5 years and 219 days ago. Viewed 2,526 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


< May 2012 >
SunMonTueWedThuFriSat
12345
6789101112
13141516171819
20212223242526
2728293031


Logged in Users: (0)
… and a Guest.



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.