Use command line tools
Overview
There are several command line tools used to to start, stop, and monitor WAS ND 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.
You can also use the V6 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...
app_server_root/bin...the command runs within the default profile.
To specify a different profile, use one of the following methods:
- Specify the -profileName option.
cd app_server_root/bin
startServer server1 -profileName ProfileNameIn this example, the command starts the appserver named server1 which exists in the configuration for the ProfileName profile.
- Run the command from the bin directory of a specific profile...
cd profile_root/bin directory.
startServer server1To use the command line tools, perform the following steps:
Procedure
- Open a system command prompt.
- Change directories to the app_server_root/bin directory.
- Run the command.
Results
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.
Example: Security and the command line tools
manageprofiles command
startServer command
stopServer command
startManager command
stopManager command
startNode command
stopNode command
addNode command
serverStatus command
removeNode command
cleanupNode command
syncNode command
renameNode command
backupConfig command
restoreConfig command
EARExpander command
GenPluginCfg command
versionInfo command
genVersionReport command
historyInfo command
genHistoryReport command
Related information
retrieveSigners command