Hi Martin,
Here is an example using command line tools in Linux. Similar results with
Windows but the server IDs will be something like this. xx\ingres\abc
1. Check the process id of iigcd
[ingres@pitingrestemp ~]$ ps -ef|grep iigcd
ingres 5551 1 0 Oct04 tty1 00:00:50
/data1/Ingres/IngresII/ingres/bin/iigcd II gcd
ingres 22085 21968 0 23:00 pts/0 00:00:00 grep iigcd
[ingres@pitingrestemp ~]$
2. Get a listing of sessions which are linked to that process ID
see this link for copy of iisess tool
http://community.actian.com/w/index.php/Iisess
[ingres@pitingrestemp ~]$ iisess -c
======Server : 55003 \c
B7EA8C00:2395597712 ingres imadb batch CS_EVENT_WAIT
Conn : ingres

itingrestemp

itingrestemp:5567:imadb/ingres
8DFD0100:2382162832 ingres imadb batch CS_EVENT_WAIT
Conn : ingres

itingrestemp

itingrestemp:5567:imadb/ingres
[some lines removed. These sessions are linked to DAS]
80B600C0:2344520592 ingres logistic2006 batch CS_EVENT_WAIT
Conn : ingres

itingrestemp

itingrestemp:5551:logistic20 06
80BA4100:2350140304 ingres logistic2006 batch CS_EVENT_WAIT
Conn : ingres

itingrestemp

itingrestemp:5551:logistic20 06
81ABDE20:2173705104 ingres logistic2006 batch CS_EVENT_WAIT
Conn : ingres

itingrestemp

itingrestemp:5551:logistic20 06
82BF9B60:2365995920 ingres logistic2006 batch CS_EVENT_WAIT
Conn : ingres

itingrestemp

itingrestemp:5551:logistic20 06
82C7C100:2379684752 ingres batch CS_COMPUTABLE ty: (Monitor
Session
Conn :
30 Sessions
[ingres@pitingrestemp ~]$
Or do it the hard way.
[ingres@pitingrestemp ~]$ iinamu
Ingres NAME SERVICE MANAGEMENT UTILITY --
-- Copyright (c) 2004 Ingres Corporation
IINAMU> show
INGRES * 55003 (sole server)
IINAMU> quit
[ingres@pitingrestemp ~]$ iimonitor 55003
IIMONITOR> show sessions
Session B7EA8C00:2395597712 (ingres ) cs_state:
CS_EVENT_WAIT (BIOR) cs_mask: CS_INTERRUPT_MASK,CS_NOXACT_MASK OS_
tid: 5568
Session 8DFD0100:2382162832 (ingres ) cs_state:
CS_EVENT_WAIT (BIOR) cs_mask: CS_INTERRUPT_MASK OS_tid: 5569
[these are the ones]
Session 82BD0100:2365193104 (ingres ) cs_state:
CS_EVENT_WAIT (BIOR) cs_mask: CS_INTERRUPT_MASK,CS_NOXACT_MASK OS_
tid: 21944
Session 80B600C0:2344520592 (ingres ) cs_state:
CS_EVENT_WAIT (BIOR) cs_mask: CS_INTERRUPT_MASK,CS_NOXACT_MASK OS_
tid: 22055
Session 80BA4100:2350140304 (ingres ) cs_state:
CS_EVENT_WAIT (BIOR) cs_mask: CS_INTERRUPT_MASK,CS_NOXACT_MASK OS_
tid: 22057
Session 81ABDE20:2173705104 (ingres ) cs_state:
CS_COMPUTABLE cs_mask: OS_tid: 22083
[Note the process ID below]
IIMONITOR> format 80BA4100
Quote:
Session 80BA4100:-1944826992
DB Name: logistic2006 (Owned by: ingres
|
)
User: ingres (ingres
)
User Name at Session Startup: ingres
Terminal: batch
Group Id:
Role Id:
Application Code: 00000000 Current Facility: CLF (00000001)
Client user: ingres
Client host: pitingrestemp
Client tty: pitingrestemp
Client pid: 5551
Client connection target: logistic2006
Client information:
user='ingres',host='pitingrestemp',tty='pitingrest emp',pid=5551,conn='logist
ic2006'
Description:
Query:
Last Query: SELECT originator_id, name, auth_group_id, default_dept_id
FROM originator WHERE originator = 'paul' and password = 'print12'
IIMONITOR> quit
3. You can connect directly to DAS and manage sessions there.
This tells you the location of the .Net client. In this case it is the web
server.
[ingres@pitingrestemp ~]$ iinamu
Ingres NAME SERVICE MANAGEMENT UTILITY --
-- Copyright (c) 2004 Ingres Corporation
IINAMU> show dasvr
DASVR * 59637
IINAMU> quit
[ingres@pitingrestemp ~]$ iimonitor 59637
IIMONITOR> show user sessions
Session 9889ba0:3 (srprod ) Type: USER state: WAIT i/o:
CLIENT
IIMONITOR> format 9889ba0
Quote:
Session 9889ba0:3
Protocol: TCP_IP, Host: pitingrestemp, Addr: II7, Port: 21071
|
Database: srprod
Connection type: Remote
Client username: NETWORK SERVICE, host: peercoresvr01.peercore.local,
address: 10.10.10.17
Network protocol: TCP_IP, node: , port:
IIMONITOR> remove 9889ba0
Pool session(s) removed
IIMONITOR>
IIMONITOR> quit
[ingres@pitingrestemp ~]$
-----Original Message-----
From: info-ingres-bounces (AT) kettleriver...ting (DOT) com
[mailto:info-ingres-bounces (AT) kettleriverconsulting (DOT) com] On Behalf Of Martin
Crouch
Sent: Wednesday, 16 November 2011 9:07 PM
To: info-ingres (AT) kettleriverconsulting (DOT) com
Subject: [Info-Ingres] Is there any way...
Hi group,
Is there any way to list the sessions currently connected to an Ingres
installation that connected via the Ingres Data Access server (iigcd)?
Cheers,
Martin
_______________________________________________
Info-Ingres mailing list
Info-Ingres (AT) kettleriverconsulting (DOT) com
http://ext-cando.kettleriverconsulti...fo/info-ingres