46 lines
2.6 KiB
HTML
46 lines
2.6 KiB
HTML
<!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>Qshell environment variables</title>
|
|
</head>
|
|
|
|
<BODY>
|
|
<!-- Java sync-link -->
|
|
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
|
|
|
<h4><a name="qshenvvar"></a>Qshell environment variables</h4>
|
|
|
|
<p>WebSphere Application Server - Express provides these Qshell environment variables that affect the scripts:</p>
|
|
|
|
<p>To set these variables, run this command:</p>
|
|
<pre> export <em>variableName</em>=<em>value</em></pre>
|
|
|
|
<p>To unset these variables, run this command:</p>
|
|
<pre> unset <em>variableName</em></pre>
|
|
|
|
<ul>
|
|
<li><p><strong>WAS_ADDL_JVM_ARGS</strong>
|
|
<br>If you set this variable, its value is appended to the Java virtual machine (JVM) arguments for all of the scripts that run a JVM. (All of the scripts except crtwasinst, dltwasinst, updwashost, enbprfwas, startServer, and lstwasinst run a JVM.) For example, this command:</p>
|
|
<pre>export WAS_ADDL_JVM_ARGS="-Dtrace=com.ibm.*=all=enabled -Xms256m"</pre>
|
|
<p>enables tracing for the JVM that a script starts, and sets the minimum heap size for the JVM to 256 megabytes.</p></li>
|
|
<li><p><strong>WAS_OS400_INSTANCE</strong>
|
|
<br>The value of this variable replaces the default instance name for all scripts that have an optional -instance parameter. For example, if you frequently run scripts on the instance named myInstance (for example, <tt>startServer -instance myInstance</tt>), you might want to run this command:</p>
|
|
<pre>export WAS_OS400_INSTANCE=myInstance</pre>
|
|
<p>After you run this command, you do not need to specify <tt>instance myInstance</tt> when you run scripts for which the -instance parameter is optional. The instance that a script uses is determined by this priority:</p>
|
|
<ol>
|
|
<li>The value of the -instance parameter</li>
|
|
<li>The value of the WAS_OS400_INSTANCE variable</li>
|
|
</ol>
|
|
<li><p><strong>WAS_USER_SCRIPT</strong>
|
|
<br>This variable specifies the path to a script that runs before a WebSphere Application Server - Express Qshell script runs. For example, if you want to append a /home/QSYS/classes.jar to the classpath for every script, you might create a script called /home/myDir/classpath.script. The script file contains this command:</p>
|
|
<pre>WAS_CLASSPATH=${WAS_CLASSPATH}:/home/QSYS/classes.jar</pre>
|
|
<p>After you create the script file, run this command to set the environment variable:</p>
|
|
<pre>export WAS_USER_SCRIPT=/home/myDir/classpath.script</pre></li>
|
|
</ul>
|
|
|
|
</body>
|
|
</html>
|