09.02.2014 Views

Windows sysinternals

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 13 Network and Communication Utilities 375<br />

If any Include or Exclude filter rules are in effect when you exit Portmon, Portmon will display<br />

them in a dialog box the next time you start it. Simply click OK to continue using those rules,<br />

or change them first. You can edit them in place, or click Reset to remove the filter.<br />

Saving, Logging, and Printing<br />

You can select one or more rows from the Portmon list and copy them as tab-delimited text<br />

to the <strong>Windows</strong> clipboard by pressing Ctrl+C. Note that the Time column is always included<br />

even if the Show Time Column option is deselected, while the sequence number column is<br />

not included. Portmon supports standard <strong>Windows</strong> methods of selecting multiple rows such<br />

as holding down Shift while pressing the Up or Down arrow keys to select consecutive rows,<br />

or holding down Ctrl while clicking nonconsecutive rows.<br />

You can save the data captured by Portmon as a text file by choosing Save or Save As from<br />

the File menu. Portmon uses the .LOG extension by default. The file format is tab-delimited<br />

ASCII text and always includes the sequence number and Time columns.<br />

To have Portmon log output to a file as it displays it, choose Log To File from the File menu.<br />

The first time you choose that menu item or click the Log To File button on the toolbar,<br />

Portmon displays the Log-To-File Settings dialog box shown in Figure 13-6, prompting you<br />

for a file location. From that point forward, the Log To File menu option and toolbar button<br />

toggle logging to that file on or off. To log to a different file or to change other log file settings,<br />

choose Log To File As from the File menu. (If log-to-file is currently enabled, choosing<br />

Log To File As has the same effect as toggling Log To File off.) The Settings dialog box also<br />

lets you configure a maximum size beyond which the log file will not grow, and whether to<br />

overwrite or append to an existing log file. After the log file grows beyond the max log size,<br />

Portmon disables logging to the file but continues to display new events as they come in. A<br />

max log size of 0 indicates no limit.<br />

FIGURE 13-6 The Portmon Log-To-File Settings dialog box.<br />

When logging to a file, Portmon writes two lines of output with the same sequence number<br />

for each event. The first line of each pair includes the process, request, port, and other information<br />

supplied by the process with the request. The second line includes the event duration<br />

(if the Clock Time option is not selected) and the result. Note that related lines may not be<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!