ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzatz_5.4.0.1/51/admin/cmdstrappsvr.htm

74 lines
4.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 QASE51 subsystem, run the following command on the CL command line:</p>
<pre>STRSBS QASE51/QASE51</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(QASE51/QASESTRSVR) PARM('-instance'
'/QIBM/UserData/WebASE51/ASE/<em>instance</em>' '-server' '<em>server</em>'))
JOB(<em>server</em>) JOBD(QASE51/QASE51) JOBQ(QASE51/QASE51) 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 server 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 QASE51/QASE51 job description and QASE51/QASE51 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(QASE51) FROMLIB(QASE51) 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(QASE51/QASESTRSVR) PARM(''-instance''
''/QIBM/UserData/WebASE51/ASE/myinst'' ''-server'' ''myserv'')'</pre></li>
<li><p>Add an autostart job entry to the QASE51/QASE51 subsystem. Enter this command from the CL command line:
<pre> ADDAJE SBSD(QASE5/QASE51) JOB(myserv) JOBD(mywasjobd/myserv)</pre></li>
</ol>
<p>You can configure the system so that the QASE51 subsystem starts at iSeries system startup. Perform either of these steps to enable automatic startup:</p>
<ul>
<li><p>Add the following line to the system startup program:</p>
<pre> STRSBS QASE51/QASE51</pre>
<p><strong>Notes:</strong></p>
<ul>
<li>The system startup program is defined by the QSTRUPPGM system value.</li>
<li>TCP/IP must be active before WebSphere Application Server subsystem can start. Ensure that the STRTCP command runs before the STRSBS QASE51/QASE51 command in your startup program or in your autostart job.</li>
<li>
For more information about the QSTRUPPGM system value, see the <a href="../../../rzakz/rzakzqstruppgm.htm">QSTRUPPGM system value</a>.</p></li>
</ul><p></p></li>
<li><p>Run this command to add an autostart job entry to the QSYSWRK subsystem.</p>
<pre> ADDAJE SBSD(QSYSWRK) JOB(QASESTR) JOBD(QASE51/QASESTR)</pre></li>
</ul>
</body>
</html>