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

71 lines
3.9 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>Manage substitution variables with the administrative console</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h3><a name="acvar"></a>Manage substitution variables with the administrative console</h3>
<p>In WebSphere Application Server - Express, you can use substitution variables to represent values in configuration files. For example, the variable LOG_ROOT represents the value /QIBM/UserData/WebASE/ASE5/<em>instance</em>/logs, where <em>instance</em> is the name of your instance. To change the location of the log files for your instance, change the value of the LOG_ROOT variable to the new path.</p>
<p>You can define variables for the cell, node, and server scopes. A variable applies to all configuration files in the scope for which it is defined. For example, WebSphere Application Server - Express defines the APP_INSTALL_ROOT variable for the node scope. The value defined for the node applies to all application servers within that node. If variables in multiple scopes have the same name, the variable with the narrowest scope takes precedence.</p>
<p>For instructions on adminstering substitution variables, see these sections:</p>
<ul>
<li><a href="#create">Create substitution variables</a></li>
<li><a href="#modify">Modify substitution variables</a></li>
<li><a href="#remove">Remove substitution variables</a></li>
</ul>
<p><strong><a name="create"></a>Create substitution variables</strong></p>
<p>To add a new substitution variable, follow these steps:</p>
<ol>
<li><a href="acstart.htm">Start the WebSphere administrative console</a>.</li>
<li>In the topology tree, expand <strong>Environment</strong> and click <strong>Manage WebSphere Variables</strong>.</li>
<li>On the <strong>WebSphere Variables</strong> page, specify the scope for which you want to define the variable and click <strong>Apply</strong>.</li>
<li>Click <strong>New</strong>.</li>
<li>Specify a name and value for the variable.</li>
<li>Click <strong>OK</strong>.</li>
<li><a href="acsave.htm">Save the configuration</a>.</li>
</ol>
<p><strong><a name="modify"></a>Modify substitution variables</strong></p>
<p>To modify a substitution variable, follow these steps:</p>
<ol>
<li><a href="acstart.htm">Start the WebSphere administrative console</a>.</li>
<li>In the topology tree, expand <strong>Environment</strong> and click <strong>Manage WebSphere Variables</strong>.</li>
<li>On the <strong>WebSphere Variables</strong> page, specify the scope that contains the variable that you want to modify and click <strong>Apply</strong>.</li>
<li>Click the name of the variable that you want to modify.</li>
<li>Make your changes.</li>
<li>Click <strong>OK</strong>.</li>
<li><a href="acsave.htm">Save the configuration</a>.</li>
</ol>
<p><strong><a name="remove"></a>Remove substitution variables</strong></p>
<p>To remove a substitution variable, follow these steps:</p>
<ol>
<li><a href="acstart.htm">Start the WebSphere administrative console</a>.</li>
<li>In the topology tree, expand <strong>Environment</strong> and click <strong>Manage WebSphere Variables</strong>.</li>
<li>On the <strong>WebSphere Variables</strong> page, specify the scope that contains the variable that you want to remove and click <strong>Apply</strong>.</li>
<li>Select the checkbox for the variable that you want to remove.</li>
<li>Click <strong>Delete</strong>.</li>
<li><a href="acsave.htm">Save the configuration</a>.</li>
</ol>
<p>You can also use wsadmin to manage substitution variables for your appliation server instance. See <a href="wsavar.htm">Use wsadmin to manage substitution variables</a> for information.</p>
</body>
</html>