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 evtRecv is also available in TSFS; nevertheless, evtRecv is maintained in WindView 2.0 for your convenience. You might choose to use evtRecv in the following circumstances:
The evtRecv tool is installed as a separate application in the Tornado suite by the SETUP program. You can start evtRecv in the same way as any other installed application on your host. For example, the most common ways to start evtRecv are the following:
|
NOTE: If evtRecv uses any port other than 6164, you must inform the target of the port number by changing the port number in the Control Properties dialog box.
|
||||||||||||||||||
Start event logging by pressing the button, then start the target application.
By default, the collected raw event log is saved to the host file eventLog.wvr. You can change this name by starting evtRecv with the -o flag; note that if you do not specify the .wvr suffix, evtRecv adds this suffix to the file.
When you stop logging by pressing , the host-target connection is closed and the evtRecv process exits. You can now import this event log into the WindView view graph using Open from the main Tools menu.
When evtRecv executes, its main window is the Event Data Receiver dialog box (Figure 8-8). Normally, this window opens when you start evtRecv, indicating that it is ready to receive target connections. However, if the socket where evtRecv expects to receive target connections is not available, the Setup dialog box opens first; see The evtRecv Setup Dialog Box for more information.
When the Event Data Receiver dialog box first opens, the list of event-log files is blank, and the two target information fields are not filled in; evtRecv fills in this information automatically when a target connects to it and begins transmitting data. If evtRecv 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.
|
|||||||||||||||||||
|
|||||||||||||||||||
The Status column in the list of log files indicates the state of the connection to the target for that particular event log. The Status column shows the following states:
Because evtRecv is a passive receiver of event data, normally the data stream ends only when you stop data collection by clicking the Stop button in the Control window or when the target application calls wvOff( ) if it was started with wvOn( ) (see C. Library and Subroutine Reference). However, you can also stop data collection interactively for the currently selected log file, by clicking the Stop button in the Event Data Receiver dialog box.
You can use the Remove button to stop displaying information for the currently selected log file in the Event Data Receiver dialog box, after the connection is shown with status DONE. (Removing a log file from this list does not delete the log file.)
Start event logging with the Start button in the Control window or with wvOn( ), then start the target application. Close the host-target connection by clicking the Stop button in the Control window or by invoking wvOff( ) ( ) on the target.
By default, evtRecv saves event data to log files named after the target, and it accepts connections over TCP port 6164. You can change these and other related parameters by clicking the Setup button, which displays the dialog box shown in Figure 8-9.
The event port number is the host TCP/IP port over which either WindView or evtRecv listens for event data from the upload task, tWVUpload. WindView negotiates with tWVUpload on the selected target for an event port number, starting at TCP port 6164.
By contrast, evtRecv listens passively for connections from any target on the network, but on a particular port. The default event port number for evtRecv is also 6164; if your target uses a different event port, you must specify the port number explicitly in the Port Number field of the evtRecv Setup dialog box. To specify the port number on the target, use the Control Properties dialog box.
The remaining controls in the evtRecv Setup dialog box allow you to control where and how to save log files for incoming event data.
The evtRecv application is designed to run for extended periods, collecting multiple event logs. It can collect event logs either simultaneously (from different targets), or serially (whether from one target or from many). To distinguish multiple log files from one another, evtRecv names its log files using the following pattern: