In a network deployment configuration, you can create the node agent as a Windows service to make WebSphere® Application Server nodes easier to start and manage.
About this task
Create the node agent as a Windows service so that the node agent starts automatically when the server is rebooted. An activated node agent communicates with the cell Deployment Manager to manage the set of servers on the node.
If you do not create the node agent as a service, you must run the startNode command manually. For example: <was_home>/profiles/<profile_name>/startNode.bat.
Procedure
- Open a command prompt window.
- Change the directory to <was_home>\bin. For example: type cd c:\Program Files\IBM\WebSphere\AppServer\bin
- Type the following WASService command with the following parameters (case-sensitive, without the line breaks):
WASService -add <profile_name>_nodeagent -serverName nodeagent -profilePath
"<was_home>\profiles\<profile_name>" -wasHome
"<was_home>" -logRoot
"<was_home>\profiles\<profile_name>\logs\nodeagent" -logFile
"<was_home>\profiles\<profile_name>\logs\nodeagent\startServer.log"
-restart true
-startType automatic
Where
- <was_home>
- Specifies the directory where WebSphere Application Server is installed. For example: C:\Program Files\IBM\WebSphere\AppServer
- <profile_name>
- Specifies the name of the custom node profile in Windows service. For example: Custom01.
Example (with sample values)
WASService -add Custom01_nodeagent -serverName nodeagent -profilePath "c:\Program Files\IBM\WebSphere\AppServer\profiles\Custom01" -wasHome"c:\Program Files\IBM\WebSphere\AppServer" -logRoot "C:\Program Files\IBM\WebSphere\AppServer\profiles\Custom01\logs\nodeagent" -logFile"C:\Program Files\IBM\WebSphere\AppServer\profiles\Custom01\logs\nodeagent\startServer.log" -restart true -startType automatic
- Press Enter. For example: The last line of the screen is displayed.
IBM WebSphere Application Server V7.0 - Custom01_nodeagent service successfully
added.
- Close the command prompt.
- Verify that the service is added to Windows services.
- Click . Type services.msc.
- Verify that the node agent service is displayed. For example:IBM WebSphere Application Server v7.0 – Custom01_nodeagent.
- Optional: If you have additional nodes, repeat this task for other nodes in your cluster. For example: Custom02.
Results
You added the node agent service to the list of Windows services.
Recent Comments