If no client_id is provided, information about all current shared memory connections to the database server is given. If a client_id is provided then this command gives more detailed information about the shared memory connection with that ID.
This is output of onstat -g nsc with no client_id. It shows that there is only one user currently connecting to the database server through shared memory. That connection has an ID of 0.
IBM Informix Dynamic Server Version 10.00.UC1 -- On-Line -- Up 6 days
clientid clientPID state #serverbufs #clientbufs #rdwrts
0 6031 Connected 4 4 12 This example shows output from running the command using a client_id of 0.
Network Shared Memory Status for Client: 0
clientid clientPID state #serverbufs #clientbufs #rdwrts
0 18949 Connected 4 4 447048
needbuf segid semid semnum be_semid be_semnum
0 1303 851969 0 851969 10
be_curread be_curwrite fe_curread fe_curwrite
-1 1 0 2
be_nextread be_nextwrite fe_nextread fe_nextwrite
2 2 4 3
readyqueue
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
Server Buffers Client Buffers
i: bufid status offset fe_addr bufid status offset fe_addr
0: 4 inuse 4474 804474 0 avail 3424 803424
1: 5 inuse 4888 804888 1 avail 3838 803838
2: 6 avail 4c9c 804c9c 2 inuse 3c4c 803c4c
3: 7 avail 50b0 8050b0 3 avail 4060 804060
4: -1 free 0 0 -1 free 0 0
5: -1 free 0 0 -1 free 0 0The following items are only in the output if you run onstat -g nsc with a client_id: