IpPortMon User Guide

SUMMARY

This document provides a brief guide for the use of the IpPortMon application. It is assumed that the reader is familiar with the use of Windows console (command-line) applications, opening a Command Prompt window and understands the need and impact of using Administrator Privileges to install device drivers.

RUNNING the IpPortMon Application

The IpPortMon application is a Windows console application. You must open a Command Prompt window and then change to the directory containing the application and support files. If you have downloaded IpPortMon from the PCAUSA website, then the installer has places these files in this folder:

     C:\Program Files\PCAUSA\IP Port Monitor

When you run the IpPortMon application it will install device drivers. You can only install device drivers if you are running with administrator privileges.

 Use the system Run as Administrator feature to open the Command Prompt window that you will use to run the IpPortMon application.

Like many Windows console applications, IpPortMon is controlled by providing arguments to the application when you start it. You can get a list of these options by using the “/?” option. When you do, you will get a “usage message” similar to what is shown below:

PCAUSA IP Local Port Data Monitor
    Usage: IpPortMon [-options ] [ > out]
Options:
   -lport  ##  local port number to monitor (default 5001)
                  Can specify multiple sequential ports two ways:
                     -lport #first-#last
                     -lport #first+#additional
   -laddr  ##  local host interface to monitor (default INADDR_ANY)
   -rport  ##  remote port number to monitor (default 5001)
   -raddr  ##  remote ip address to monitor (default INADDR_ANY)
   -rmask  ##  remote ip address mask (default 255.255.255.255)
   -hexlen ##  number of bytes of data to HEX dump to console (default 32)
                  set to -1 to HEX dump all bytes
   -maxlog ##  max number of log entries that driver will cache before
                  overflow (default 100)

You must specify either a local or a remote port to monitor. You would select a local port if the server you are monitoring is on the local host. You would select a remote port if you want to monitor a connection between a local client and a remote host.

Most of the options are self-explanatory. Less obvious options are:

MAX Number of Cached Log Entries (-maxlog)

This parameter specifies the maximum number of log records that driver can allocate. Each log record consists of a small amount of fixed overhead plus a variable size memory allocation for the data being logged.

When the maximum number of cached log entries is exceeded the driver stops creating log entries. If records are read faster than they are created, then this limit won’t be reached. However, when monitoring large transfers between client and server at memory copy speeds it is certain that the limit will be reached and some monitor data will be lost.

 Number of Bytes to HEX Dump to Console (-hexlen)

This parameter specifies the maximum number of bytes of data to HEX dump to the console. In many cases only the first few bytes of a monitored operation is of interest. Remember that output to the console is a slow process; dumping fewer bytes may reduce the number of log record overruns.

 Saving IpPortMon Output to a File

You can save the IpPortMon output to a file by using the redirection operator.

Operation of the TDI filter on pre-Vista platforms requires the TDI filter to be running before the local host sockets on the port to be monitored is created.

 When using the TDI filter you must start the TDI filter before the sockets involved on the local host are created.

This restriction does not apply to the WFP driver used on Vista and later platforms. 

 

Example: Monitoring a Telnet Session

The command line below tells IpPortMon to monitor in the Telnet port (port 23) on the local host and use HEX dump to dump all monitor data to the console:

E:>ipportmon -lport 23 -hexlen -1

Example: Monitoring a TCP Echo Session

The command line below tells IpPortMon to monitor in the TTCP port (port 5001) on the local lost and use HEX dump to dump all monitor data to the console:

E:>ipportmon -lport 5001 -hexlen -1

Example: Monitoring HTTP Transactions to a Remote Server

The command line below tells IpPortMon to monitor in the HTTP port (port 80) on the PCAUSA website lost and use HEX dump to dump all monitor data to the console.

The URL to be monitored is http://www.pcausa.com/filters/smallpage.htm, and the IP address of the PCAUSA server is 198.173.253.120.

E:>ipportmon -rport 80 -raddr 198.173.253.1 20 -rmask 255.255.255.255 -hexlen -1 > smallpage.log

 

PCAUSA Home · Privacy Statement · Products · Ordering · Support · Utilities · Resources
Mailing Lists  · PCAUSA Newsletter · PCAUSA Discussion List
 
Rawether for Windows and WinDis 32 are trademarks of Printing Communications Assoc., Inc. (PCAUSA)
Microsoft, MS, Windows, Windows 95, Windows 98, Windows Millennium, Windows 2000, and Win32 are registered trademarks and Visual C++ and Windows NT are trademarks of the Microsoft Corporation.
Send mail to webmaster@pcausa.com with questions or comments about this web site.
Copyright © 1996-2008 Printing Communications Assoc., Inc. (PCAUSA)
Last modified: December 31, 2007