📄 c-tools6.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title> Target Server </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="GuideIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-tools.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-tools5.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-shell.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="84394">5.6 Managing a Target Server</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84396"> </a>A number of target-server management commands are available to control your target servers and other networked Tornado target servers. To reach these commands, click <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tools</font></b>><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Target Server</font></b>> <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Manage</font></b>. Tornado opens the dialog box shown in <a href="c-tools6.html#84413">Figure 5-14</a>. <div class="frame"><h4 class="EntityTitle"><a name="84413"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 5-14: Manage Target Servers Dialog Box</font></a></h4><dl class="margin"><div class="Anchor"><a name="84410"> </a><img class="figure" border="0" src="images/c-tools10.gif"></div></dl></div> </p><dd><p class="Body"><a name="84415"> </a>At the top of the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Manage Target Servers</font></b> dialog box is a target selector--a drop-down list that you can use to select any of the targets registered with the Tornado target registry you are using. To help you see what target is selected, the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Manage Target Servers</font></b> dialog box displays the target information summary (the same information as the target summary available from the browser; see <a href="c-browser5.html#84081"><i class="title">7.5 Target-Information Window</i></a>). You can update the display with the <img class="figure" border="0" src="images/c-tools11.gif"> (exclamation mark) button.</p><dd><p class="Body"><a name="90699"> </a>Once you select a target, you can select a command from the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Select</font></b> <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Action</font></b> drop-down list box (<a href="c-tools6.html#84413">Figure 5-14</a>), then click <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Apply</font></b> to execute the command on the selected target. Click <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Close</font></b> to dismiss the dialog box. </p><dd><p class="Body"><a name="90703"> </a>The following commands are available on the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Select</font></b> <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Action</font></b> drop-down list:</p></dl><dl class="margin"><dd><div class="Item"><a name="90704"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Reserve</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="85028"> </a>Reserve the target server for your own use. See <a href="c-tools6.html#84439"><i class="title">Sharing and Reserving a Target Server</i></a> for more information.</div><br></dl><dd><div class="Item"><a name="84431"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Unreserve</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="85030"> </a>Release a previously reserved server so that others can use it.</div><br></dl><dd><div class="Item"><a name="84432"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Unregister</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="85032"> </a>Remove the selected target server from the Tornado registry's list of available servers. <i class="emphasis">Do not use this command routinely</i>. Under most circumstances, the registry automatically removes the entry for any target server that has been killed (for example, due to a host system crash). This command can also be used to do so. The registry honors the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Unregister</font></b> command only if the server does not respond to the registry.</div><br></dl><dd><div class="Item"><a name="84434"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Kill</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="85034"> </a>Stop the currently selected target server; equivalent to pressing <kbd>CTRL+BREAK</kbd> in the target-server window.</div><br></dl></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/warning.gif"></td><td><hr><div class="CalloutCell"><a name="89962"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">WARNING: </font></b></a>Close any Tornado tools that use a particular target before you kill it. Killing a target server does not immediately destroy any attached tools, but the tools lose the ability to interact with the target. There is no way to reconnect a new target server to such orphaned tool sessions.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout><dl class="margin"><dd><div class="Item"><a name="84437"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Reboot</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="85036"> </a>Reboot the selected target and re-initialize its target server.</div><br></dl></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="84439">Sharing and Reserving a Target Server</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84441"> </a>A target server may be made available to the following classes of user:</p></dl><dl class="margin"><p class="listspace"><ul class="Bullet" type="disc"><li><a name="84442"> </a>the user who started the server</li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="84443"> </a>a single user, who may or may not have started the server</li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="84447"> </a>a list of specified users<sup><a href="#foot"><b class="FootnoteMarker">1</b></a></sup></li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="84448"> </a>any user</li></ul></p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/caution.gif"></td><td><hr><div class="CalloutCell"><a name="89984"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">CAUTION: </font></b></a>The target-server authorization mechanism assumes a collaborating group of users; it is not secure against malicious use. If you are concerned about interference from malicious users, isolate your PC from any network that such users may be able to reach.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout><dl class="margin"><dd><p class="Body"><a name="84450"> </a>To participate in the Tornado authorization scheme, you must set the environment variable <b class="symbol_UC">WIND_UID</b> to a unique numeric user ID; see your Windows documentation.</p><dd><p class="Body"><a name="84454"> </a>If some Tornado users at your site use UNIX hosts, they do not need to set the <b class="symbol_UC">WIND_UID</b> environment variable; on UNIX hosts, the Tornado authorization scheme uses the system user ID. </p><dd><p class="Body"><a name="84455"> </a>When a target server is available to anyone, its status is <i class="term">unreserved</i>. This status is visible in the browser (<a href="c-browser5.html#84081"><i class="title">7.5 Target-Information Window</i></a>) and in the target-selection dialog for any Tornado tool (for example, <a href="c-tools5.html#86977">Figure 5-13</a>). Any user can attach a tool to the target, and any user can also restrict its use.</p><dd><p class="Body"><a name="84462"> </a>When you configure a target server, you can arrange for the server to be exclusively available to your user ID every time you start it, by clicking the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Lock on Startup</font></b> option button in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Authorizations</font></b> property panel of the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Configure Target Servers</font></b> dialog box. See <a href="c-tools2.html#84197"><i class="title">5.2.2 Target-Server Configuration Options</i></a>. Target servers started this way have the status <i class="term">locked</i>.</p><dd><p class="Body"><a name="84467"> </a>If a target server is not locked by its creator, and if no one else has reserved it, you can reserve the target server for your own use: click on the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Reserve</font></b> command of the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Manage Target Servers</font></b> dialog box (see <a href="c-tools6.html#84394"><i class="title">5.6 Managing a Target Server</i></a>). The target status becomes <i class="term">reserved</i> until you release the target with the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Unreserve</font></b> command in the same dialog box. <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Unreserve</font></b> on a target that is not reserved has no effect, nor does <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Unreserve</font></b> on a target reserved or locked by someone else.</p><dd><p class="Body"><a name="84471"> </a>This simple reserve/unreserve locking mechanism is sufficient for many development environments. In some organizations, however, it may be necessary to further restrict some targets to a particular group of users. For example, a QA organization may need to ensure certain targets are used only for testing, while still using the reserve/unreserve mechanism to manage contention within the group of testers. </p></dl></dl><dl class="margin"><dd><font face="Helvetica, sans-serif" size="-1" class="sans"><h5 class="HU"><i><a name="88587">Authorized User File</a></i></h5></font><dl class="margin"><dd><p class="Body"><a name="84472"> </a>To restrict a target server to a list of users, create a file listing authorized users, and configure the target server to base authorization on that file (see <a href="c-tools2.html#84199"><i class="title">Authorizations</i></a>). The file should consist of one line for each user, with each line containing the user name, followed by a space, followed by the user's numeric identification. </p><dd><p class="Body"><a name="84489"> </a>For users on UNIX hosts, the user names are host sign-on names, as used by system files like <b class="file">/etc/passwd</b> (or its network-wide equivalent), and the numbers are the system user IDs. For users on Windows hosts, the names are mnemonic aids, and the numbers are arbitrary identifiers.</p><dd><p class="Body"><a name="84490"> </a>You can also use one special entry in the authorization file: a plus sign (<b>+)</b> to explicitly authorize any user to connect to the target server. (This might be useful to preserve the link between a target server and an authorization file when access to that target need only be restricted from time to time.)</p><dd><p class="Body"><a name="83403"> </a></p></dl></dl><a name="foot"><hr></a><p class="FootnoteNumberMarker">1: <span class="Footnote"><a name="84446"> </a>Strictly speaking, there is another layer of authorization defining who is meant by "any user." The file <b class="file">c:\tornado\.wind\userlock</b> is a Tornado-wide authorization file, used as the default list of authorized users for any target server that does not define its own authorized-users file. This file has the same format described below for individual authorization files.</span><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="GuideIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-tools.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-tools5.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-shell.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p></body></html><!---by WRS Documentation (), Wind River Systems, Inc. conversion tool: Quadralay WebWorks Publisher 4.0.11 template: CSS Template, Jan 1998 - Jefro --->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -