c-xfer4.html
来自「vxworks相关论文」· HTML 代码 · 共 359 行 · 第 1/2 页
HTML
359 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title> Data Upload </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="c-xfer.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-xfer.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-xfer3.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="x-arch.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="87462">8.4 The <b class="command">evtRecv</b> Tool</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="87465"> </a>This tool allows you to upload event logs to the host using a socket, and save them immediately in a file without configuring either TSFS or NFS on the target. This same functionality offered by <b class="command">evtRecv</b> is also available in TSFS; nevertheless, <b class="command">evtRecv</b> is maintained in WindView 2.0 for your convenience. You might choose to use <b class="command">evtRecv</b> in the following circumstances:</p></dl><dl class="margin"><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85009"> </a>You want to save event logs to multiple files, each generated with different logging levels. <b><a href="../../tornado/tools/evtRecv.html#top" >evtRecv</a></b> allows you to save event logs into multiple files; each time event logging is turned off and then on, a new file is generated. </li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85011"> </a>You must collect event data from multiple sources at the same time. <b><a href="../../tornado/tools/evtRecv.html#top" >evtRecv</a></b> can accept and log event data from any number of targets simultaneously. </li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85420"> </a>You have been using <b class="command">evtRecv</b> with WV 1.0 and have workable procedures in place. </li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85421"> </a>You want to use a TCP/IP socket directly from your target to the WindView host, without including a file system. </li></ul></p></dl><dl class="margin"><dd><p class="Body"><a name="85013"> </a><b class="command"></b>The <b class="command">evtRecv</b> tool is installed as a separate application in the Tornado suite by the <b class="symbol_UC">SETUP</b> program. You can start <b class="command">evtRecv</b> in the same way as any other installed application on your host. For example, the most common ways to start <b class="command">evtRecv</b> are the following:</p></dl><dl class="margin"><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85014"> </a>On Windows 95, first click the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Start</font></b> button on the task bar, then select <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Programs</font></b> and point to <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tornado</font></b>; finally, click on the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">evtRecv</font></b> entry in the resulting sub-menu.</li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85015"> </a>On Windows NT, open the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tornado</font></b> program group in the program manager; then double-click the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">evtRecv</font></b> program icon. </li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85016"> </a>On UNIX, enter <b class="command">evtRecv</b> on the command line. </li></ul></p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="87503">Running <b class="command">evtRecv</b> on UNIX</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="87512"> </a>The <b class="command">evtRecv</b> tool attempts to bind to host TCP/IP port 6164. If this port is already in use (for example, if WindView is listening to this port), <b class="command">evtRecv</b> exits with an error status. In this case, you can use the <b class="command">-p</b> flag to specify another port number.</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/note.gif"></td><td><hr><div class="CalloutCell"><a name="90294"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">NOTE: </font></b></a>If <b class="command">evtRecv</b> uses any port other than 6164, you must inform the target of the port number by changing the port number in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Control Properties</font></b> dialog box.</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="87518"> </a>Start event logging by pressing the <img class="figure" border="0" src="images/c-xfer8.gif"> button, then start the target application.</p><dd><p class="Body"><a name="87519"> </a>By default, the collected raw event log is saved to the host file <b class="file">eventLog.wvr</b>. You can change this name by starting <b class="command">evtRecv</b> with the<b class="command"> -o</b> flag; note that if you do not specify the <b class="file">.wvr</b> suffix, <b class="command">evtRecv</b> adds this suffix to the file.</p><dd><p class="Body"><a name="87520"> </a>When you stop logging by pressing <img class="figure" border="0" src="images/c-xfer9.gif">, the host-target connection is closed and the <b class="command">evtRecv</b> process exits. You can now import this event log into the WindView view graph using <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Open</font></b> from the main <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tools</font></b> menu.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="87505">Running <b class="command">evtRecv</b> on Windows </a></i></h4></font><dl class="margin"><dd><font face="Helvetica, sans-serif" size="-1" class="sans"><h5 class="HU"><i><a name="84690">The Event Data Receiver Dialog Box</a></i></h5></font><dl class="margin"><dd><p class="Body"><a name="84692"> </a>When <b class="command">evtRecv</b> executes, its main window is the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Event Data Receiver</font></b> dialog box (<a href="c-xfer4.html#84703">Figure 8-8</a>). Normally, this window opens when you start <b class="command">evtRecv</b>, indicating that it is ready to receive target connections. However, if the socket where <b class="command">evtRecv</b> expects to receive target connections is not available, the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Setup</font></b> dialog box opens first; see <a href="c-xfer4.html#89592"><i class="title">The evtRecv Setup Dialog Box</i></a> for more information.</p><dd><p class="Body"><a name="84699"> </a>When the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Event Data Receiver</font></b> dialog box first opens, the list of event-log files is blank, and the two target information fields are not filled in; <b class="command">evtRecv</b> fills in this information automatically when a target connects to it and begins transmitting data. If <b class="command">evtRecv</b> has accepted connections from multiple targets simultaneously, the target-information fields reflect the most recent connection, unless one of the log files in the list is selected. To see the target name and IP address for any connection, select the corresponding log file from the list. <p class="table"><h4 class="EntityTitle"><a name="84703"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 8-8: Event Data Receiver Dialog Box (evtRecv)</font></a></h4><table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="84719"> </a><img class="figure" border="0" src="images/c-xfera3.gif"></div></td><td width="10"> </td></tr><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></p><dd><p class="Body"><a name="84721"> </a>The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Status</font></b> column in the list of log files indicates the state of the connection to the target for that particular event log. The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Status</font></b> column shows the following states:</p></dl><dl class="margin"><dd><div class="Item"><a name="84722"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">READ</font></b> </div><dl class="margin"><dl class="margin"><dd><div class="Indent2"><a name="84723"> </a>Data is arriving from this target.</div><br></dl></dl><dd><div class="Item"><a name="90175"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">WRITE</font></b> </div><dl class="margin"><dl class="margin">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?