Websphere Command References
Websphere Commands
Here is a quick guide about how to Start and Stop Application Server, Node Agent and Deployment Manager in WebSphere Application Server.
Stop Application Server:
Go to the /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin folder and run:
Go to the /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin folder and run:
./stopServer.sh <Server Name or JVM Name> -user <username> -password <password>
Stop Node Agent:
Go to the respective profile bin /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin folder and run:
./stopNode.sh -user <username> -password <password>
Stop Deployment Manager:
Go to the /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin folder and run:
./stopManager.sh -user <username> -password <password>
or
./stopServer.sh <DMGR Server Name> -user <username> -password <password>
Start Deployment Manager
Go to the /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin folder and run:
./startManager.sh
or
./stopServer.sh <DMGR Server Name>
Start Node Agent
Go to the respective profile bin /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin folder and run:
./startNode.sh
Start Application Server
Go to the respective profile bin /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin folder and run:
./startServer.sh <Server Name or JVM Name>
Manual Synch Node
We can manually synchronize a node with the Deployment Manager through the command
syncNode command. The syncNode command forces a configuration synchronization to occur between the node and the deployment manager for the cell in which the node is configured.
Go to the respective profile bin /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin folder and run:
- Stop the Nodeagent as first step
./stopNode.sh -user <username> -password <password>
- Run the below command to synch Node manually with DMGR
./synchNode.sh <DMGR HostName > <SOAP Connector Port> -user <username> -password <password>
Add Node:
The addNode command incorporates an application server installation into a cell.This will create a nodeagent .The node agent server is automatically started as part of the addNode command unless you specify the
-noagent
option. If you recycle the system that hosts an application server node, and did not set up the node agent to act as an operating system daemon, you must issue a startNode command to start the node agent before starting any application servers../addNode.sh <DMGR HostName > <SOAP Connector Port> -conntype SOAP -profileName <Profile Name> -user <username> -password <password> -portprops <NodePort.txt>
Remove Node:
Remove nodes returns from WAS distributed administration cell to standalone application server installation
Syntax: Profile>bin>./ removeNode.sh <nodename> <deploymgrhost> <deploymgrport> Example: /opt/IBM/WebSphere/AppServer/profilesCustom02/bin/removeNode.sh. –userName admin –password admin
Cleanup Node:
The cleanupNode command cleans up a node configuration from the cell repository.CleanupNode is used to clean the node when you have defined a node in cell config but node no longer exists. This is generally used when we are done with defederation. Syntax: DmgrProfile>bin> ./cleanupNode.sh <nodename> <deploymgrhost> <deploymgrport> Example: /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/cleanupNode.sh. myNode -trace -profileName mydmgr
Comments
Post a Comment