ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzamy_5.4.0.1/50/admin/cmdstrappsvr.htm

55 lines
3.2 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>Use the CL command to start an application server</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h3><a name="cmdstrappsvr"></a>Use the CL command to start an application server</h3>
<p>You can use a CL command to start your application server instance. To start the application server from the CL command line, follow these steps:</p>
<ol>
<li><p>Start Transmission Control Protocol/Internet Protocol (TCP/IP). On the CL command line, enter this command:</p>
<pre> STRTCP</pre></li>
<li><p>To start the QASE5 subsystem, run the following command on the CL command line:</p>
<pre> STRSBS QASE5/QASE5</pre>
<p><strong>Note:</strong> Your user profile must have *JOBCTL authority to start the WebSphere Application Server subsystem.</p></li>
<li><p>After the subsystem starts, run this command from the CL command line:</p>
<pre> SBMJOB CMD(CALL PGM(QASE5/QASESTRSVR) PARM('-instance'
'/QIBM/UserData/WEBASE/ASE5/<em>instance</em>' '-server' '<em>server</em>'))
JOB(<em>server</em>) JOBD(QASE5/QASE5) JOBQ(QASE5/QASE5) USER(QEJBSVR)
LANGID(*USRPRF) CNTRYID(*USRPRF) CCSID(*USRPRF)</pre>
<p>where <em>instance</em> is the name of the application server instance that you want to start and <em>server</em> is the name of the server in that instance. For most WebSphere Application Server - Express instances, the instance name and server name are the same. You can only start one application server when you run this command. To start additional application servers, you must run the command separately for each application server that you want to start.</p>
<p><strong>Note:</strong> To run this command, your user profile must have *USE authority to the QEJBSVR user profile. Use the Edit Object Authority (EDTOBJAUT) command to add or verify that your user profile has this authority.</p></li>
</ol>
<p>If your profile has authority to the QASE5/QASE5 job description and QASE5/QASE5 subsystem description, you can configure WebSphere Application Server - Express to automatically start when the you start the WebSphere Application Server - Express subsystem.</p>
<ol>
<li><p>Create a duplicate of the job description used by WebSphere Application Server instances. For example, on the CL command line run this command:</p>
<pre> CRTDUPOBJ OBJ(QASE5) FROMLIB(QASE5) OBJTYPE(*JOBD) TOLIB(mywasjobd) NEWOBJ(myserv)</pre></li>
<li><p>Use the CHGJOBD command to change the newly created job description so that the <strong>Request data or command</strong> (RQSDTA) field starts the server. In the following example, the instance is myinst and the server is myserv:</p>
<pre> 'QSYS/CALL PGM(QASE5/QASESTRSVR) PARM(''-instance''
''/QIBM/UserData/WebASE/ASE5/myinst'' ''-server'' ''myserv'')'</pre></li>
<li><p>Add an autostart job entry to the QASE5/QASE5 subsystem. Enter this command from the CL command line:
<pre> ADDAJE SBSD(QASE5/QASE5) JOB(myserv) JOBD(mywasjobd/myserv)</pre></li>
</ol>
</body>
</html>