This program (included service and trayicon application) was written
to gather statistics of TCP connections to IB server. IBConSvc writes
information (IP Address, Host Name (if resolve is successful), DateTime
of connect and disconnect) into interbase.log file (or any text file)
and shows information about active connections on the screen.
This helps to understand what client stations generated 10054 and other errors.
Also you can forcibly close the active connections.

WARNING - If you already have installed prev version, please, uninstall it, and install this version.

For service:

1. To install service run it at command prompt
ibconsvc.exe /install
2. Open "Services" from Control Panel, find "InterBase Connections" and
start it. Also you can configure automatic or manual startup of this
service.
3. To remove ibconsvc from Services run
ibconsvc.exe /uninstall

For application:

Install not needed, just run.

System requirements:

Windows 98 or higher (only application), Windows NT (Service Pack 4 or higher), W2K, XP, InterBase server 4x or higher, or any clone.

This program is distributed with the a file IBConnections.cfg, (it must be in the same folder
where the program) which are included parameters by default for Borland InterBase.

Port=3050 - IB Port
LogFile=C:\Program Files\Borland\InterBase\interbase.log - Full path to the log file, if not interbase.log, the file should be previously created
TimeOut=1000 - The idle time in msec (from 0 and higher) 
SingleLine=False - See later

If parameter SingleLine=False (for record into interbase.log) lines in a file has the following kind:

MALICE (InterBase Connections)	Thu Jul 27 17:05:05 2000
	Connect: IP Address - 167.33.33.28, HostName - HOST1


MALICE (InterBase Connections)	Thu Jul 27 17:05:09 2000
	Disconnect: IP Address - 167.33.33.28, HostName - HOST1


If parameter SingleLine=True (for record into any text file) line in a file has the following kind:

167.33.33.28    HOST1    11/12/2001 16:11:56    11/12/2001 16:12:01

You can create external table in any database on current server:

  CREATE TABLE IB_CONNECT EXTERNAL FILE 'Full path to the log file'(
    IP_ADDRESS CHAR(15),
    HOST_NAME CHAR(255),
    DT_OPEN CHAR(19),
    DT_CLOSE CHAR(19),
    EOL CHAR(2)
  )

and work with it.

Example queries:

If you want to view daily connections:

  select * from ib_connect
  where cast(dt_open as date) between '09/02/2001' and '09/03/2001'

If you want to view connections by IP address:

  select * from ib_connect
  where cast(ip_address as varchar(15)) = '167.33.33.28'

If you want to view connections by host name:

  select * from ib_connect
  where cast(host_name as varchar(255)) = 'HOST1'

With best regards, Vadim Crits.
E-mail: vcrits@mail.ru
