Use command line tools
There are several command line tools that use to start, stop, and monitor WebSphere server processes and nodes. These tools only work on local servers and nodes. They cannot operate on a remote server or node.
To administer a remote server, use the wsadmin scripting program connected to the deployment manager for the cell in which the target server or node is configured. You can also use the administrative console which runs in the deployment manager for the cell.
All command line tools function relative to a particular profile. If you run a command from...install_root/WebSphere/AppServer/bin
...the command will run within the default profile. If you want to specify a different profile, perform one of the following:
- Specify the -profileName option.
startServer.sh server1 -profileName AppServerProfile
In this example, the command will function inside the AppServerProfile profile.
- Run the command from the bin directory of a specific profile.cd install_root/WebSphere/AppServer/profiles/MyProfile/bin
In this example, the command will function inside the MyProfile profile.
To use the command line tools, perform the following steps:
- Open a system command prompt.
- Change to the bin directory.
- Run the command.
ResultThe command runs the requested function and displays the results on the screen. Refer to the command log file for additional information. When you use the -trace option for the command, the additional trace data is captured in the command log file. The directory location for the log files is under the default system log root directory, except for commands related to a specific server instance, in which case the log directory for that server is used. You can override the default location for the command log file using the -logfile option for the command.
Example: Security and the command line tools
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.