+

Search Tips   |   Advanced Search

Use command-line tools

There are several command-line tools that we can use to start, stop, and monitor application 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, we can use the wsadmin scripting program connected to the deployment manager for the cell in which the target server or node is configured.

The following information is common for each command:

(dist)

Running tools on the Microsoft Windows Vista or later Microsoft operating system: On the Windows Vista, Windows Server 2008, and Windows 7 operating systems, we can install WebSphere Application Server as either Administrator or non-Administrator. When it is installed as Administrator, certain operations (such as those involving Windows Services) require Administrator privileges. To ensure that WebSphere Application Server command-line tools have sufficient privileges, run them with elevated administrator authority on systems that have the Windows User Account Control (UAC) Run all administrators in Admin Approval Mode policy enabled. When you run these command-line tools from a Command Prompt, run them from a Command Prompt window that is launched by performing the following actions:

Examples of these tools are the startServer command, stopServer command, startManager command, stopManager command, startNode command, stopNode command, firststeps command, and the Profile Management Tool. For a Windows Server Core installation of Windows Server 2008, any WebSphere Application Server commands that require a graphical interface are not supported since a Windows Server Core system does not have a GUI. Therefore, commands such as launchpad.exe or ifgui.bat are not supported on that type of Windows Server 2008 installation.

Restriction: These command-line tools do not apply to the Liberty profile. See Administer the Liberty profile from the command prompt instead.

Use the following general steps to run a command:

  1. (dist)(zos) Open a system command prompt.

  2. (iseries) From the IBM i command line, start a Qshell session by issuing the STRQSH CL command.

  3. Determine whether to run the script from the profile or application server root directory.

    Most command-line tools function relative to a particular profile. To determine if a command requires the -profileName parameter, refer to the documentation for that specific command. If we run a command from the app_server_root/bin directory and do not specify the -profileName parameter, the default profile for the product sets profile-specific variables. To specify a different profile, use one of the following options:

    • Navigate to the app_server_root/bin directory and run the following command, specifying the profile of interest as the value for the profileName parameter:

    • When a profile is created, the application server creates a proxy script in the profile_root/bin directory for each script in the app_server_root/bin directory that is applicable to the type of profile created. When a proxy script is invoked, the profile-specific variables for the script are set based on the profile from which the script is invoked. To run the command for a specific profile, navigate to the profile_root/bin directory for the profile of interest to run the command.

  4. Run the command of interest.


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


What to do next

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


Related tasks

  • Get started with wsadmin scripting

    (iseries) Configure Qshell to run WebSphere scripts

    (iseries) Granting authority to a profile using the IBM i command line

    (iseries) Revoking authority to a profile using the IBM i command line

    (iseries) checkprereqs command

    (iseries) chgwassvr command

    (iseries) configureOs400WebServerDefinition command

    (iseries) dspwasinst command

    (iseries) enablejvm command (deprecated)

    (iseries) enbprfwas command

    (iseries) heapMonitor command

    (iseries) ivt command

    (iseries) port validator tool

    (iseries) prerequisite validator tool

    (iseries) removeOs400WebServerDefinition command

    (iseries) rvkwasaut command

    (iseries) servicetools command

    (iseries) updwashost command

    (iseries) grtwasaut command

  • registerNode command
  • deregisterNode command
  • revokeCertificate command
  • requestCertificate command
  • createCertRequest command
  • queryCertificate command

    (iseries) PropFilePasswordEncoder command reference


    Related information:

    (iseries) Qshell environment variables

  • Example: Security and the tools

    manageprofiles command

  • managesdk 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
  • retrieveSigners command
  • versionInfo command
  • genVersionReport command
  • historyInfo command
  • genHistoryReport command