IIgcc connections

>      Does anyone know how to find the number of connections at any 
>      particular time, that have been made to a particular comms server 
>      process (iigcc).
>      
>      I know the max outbound/inbound, but I want to know how many people 
>      are going through a particular server. We have 6 iigcc's on our main 
>      production instance. We use 6.4/04 under HP-UX 9.04.
>      
>      Thank you.
>      ********************************************************************** 
>      * Name:  Dean Lawrence                                               * 
>      * Email: Dean.Lawrence@ps.net                                        * 
>      **********************************************************************

If all you need is the number of connections, netstat will tell you.  You
will need the listener port of the gcc you need to look at, this is available
from iinamu with the 'show comsvr' command.  Once you have the listener
address(es) use

	netstat | grep 

Each gcc connection should have 2 ports of the form

localhost.33158      localhost.33140       8192      0  8192      0 ESTABLISHED
localhost.33140      localhost.33158       8192      0  8192      0 ESTABLISHED

In the above instance the gcc listener address is 33140.  If what you need
is the number of connections simply count the number of lines you get back
and divide by two.  (the shell gurus will of course come up with a one line
command full of funny characters that will do all this for you)

Hope this helps.

Nick Vancas
DMT, Inc.
(816) 421-3500
vancas@dmt.com
Ingres Q & A
To William's Home Page

© William Yuan 2000

Email William