Use command line tools

 

+

Search Tips   |   Advanced Search

 

Overview

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. We 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.

    cd install_root/WebSphere/AppServer/bin
    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
    startServer server1

    In this example, the command will function inside the MyProfile profile.

To use the command line tools, perform the following steps:

 

Procedure

  1. Open a system command prompt.

  2. Change to the bin directory.

  3. Run the command.

 

Result

The 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. We can override the default location for the command log file using the -logfile option for the command.

 

See also


Example: Security and the command line tools
startServer command
stopServer command
startManager command
stopManager command
startNode command
stopNode command
addNode command
serverStatus command
removeNode command
cleanupNode command
syncNode command
backupConfig command
restoreConfig command
EARExpander command
GenPluginCfg command