WebSphere Application Server - Express, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Using command line tools

Why and when to perform this task

There are several command line tools that you can 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, you can use the wsadmin scripting program connected to the deployment manager for the cell in which the target server or node is configured. See Deploying and managing using scripting for more information about using the wsadmin scripting program. You can also use the V5 administrative console which runs in the deployment manager for the cell. For more information about using the administrative console, see Deploying and managing with the GUI.

All command line tools function relative to a particular profile. If you run a command from a install_root/WebSphere/AppServer/bin directory, 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. The profile that you specify with this option will be used instead of the default profile. For example:
    1. Change to the install_root/WebSphere/AppServer/bin directory.
    2. Type the following command: startServer 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. For example:
    1. Change to the install_root/WebSphere/AppServer/profiles/MyProfile/bin directory.
    2. Type the following command: startServer server1
    In this example, the command will function inside the MyProfile profile.

For more information about using profiles, including how to obtain a list of profiles, see the wasprofile command article.

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

Steps for this task

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



Sub-topics
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
backupConfig command
restoreConfig command
EARExpander command
GenPluginCfg command
Task topic    

Terms of Use | Feedback

Last updated: Jun 8, 2005 12:45:23 PM EDT
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/txml_command.html

© Copyright IBM Corporation 2004, 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)