home‎ > ‎utilities‎ > ‎

infx users

Show information about user sessions.

usage

infx users [ order class sessid user locks waitfor dbname sql ]
  required
    inst - name of the instance
  optional
    order - change output order
    class - only show specific class
    sessid - only show user sessions with matching sessid
    user - only show user sessions with this user name
    locks - only show user sessios holding at least this many locks
    waitfor - only shows user sessions waiting for this condition
    dbname - only show user sessions connect to this database

example

demo1@bobii:/home/informix>infx users

class  ses  flags    user      location      wait           dbname        sql     locks  nreads  nwrites  thr   kb
       241  ---P---  informix  bobii(21835)                 monitor_jgh1  select      1       8        0    1  136
ok     238  Y--P---  informix  bobii(21839)  netnorm (2)    monitor_jgh1  -           1       8        0    1  124
       25   ---P---  informix  -                            sysadmin                  1       1      144    1  620
       24   ---P---  informix  -                            sysadmin                  1       1      131    1  552
       23   ---P---  informix  -                            sysadmin                  2       0       52    1  560
ok     240  Y--P---  informix  bobii(21829)  netnorm (1)    monitor_jgh1  -           1      12        0    1  128
ok     237  Y--P---  informix  bobii(21825)  netnorm (1)    monitor_jgh1  -           1       1        0    1  124
ok     239  Y--P---  informix  bobii(21833)  netnorm (1)    monitor_jgh1  -           1       1        0    1  124
warn   236  L--PR--  informix  bobii(21831)  lock 242 (10)  monitor_jgh1  update      2       0        0    1   88
ok     242  Y-BP---  informix  bobii(21842)  netnorm (5)    monitor_jgh1  -          71       9        0    1  260
       243  ---PR--  informix  bobii(21827)                 monitor_jgh1  select      1      13        0    1  128

Only show users of the "monitor_jgh1" database.

demo1@bobii:/home/informix>infx users dbname=monitor_jgh1

class  ses  flags    user      location      wait         dbname        sql     locks  nreads  nwrites  thr   kb
ok     241  Y--P---  informix  bobii(21835)  netnorm (1)  monitor_jgh1  -           1       8        0    1  124
       238  ---P---  informix  bobii(21839)               monitor_jgh1  select      1       8        0    1  144
ok     240  Y--P---  informix  bobii(21829)  netnorm (1)  monitor_jgh1  -           1      12        0    1  124
ok     237  Y--P---  informix  bobii(21825)  netnorm (1)  monitor_jgh1  -           1       1        0    1  124
ok     239  Y--P---  informix  bobii(21833)  netnorm (1)  monitor_jgh1  -           1       1        0    1  120
ok     236  Y--P---  informix  bobii(21831)  netnorm (3)  monitor_jgh1  -           2     374        0    1   96
ok     242  Y-BP---  informix  bobii(21842)  netnorm (1)  monitor_jgh1  -          65     520      736    1  260
ok     243  Y--P---  informix  bobii(21827)  netnorm (1)  monitor_jgh1  -           1      13        0    1  128

Only show sessions waiting for a lock.

demo1@bobii:/home/informix>infx users waitfor=lock

class  ses  flags    user      location      wait           dbname        sql     locks  nreads  nwrites  thr  kb
warn   236  L--PR--  informix  bobii(21831)  lock 242 (70)  monitor_jgh1  update      2     374        0    1  96

notes

  • output format defined in /infx/template/infx-cli/infx-cli-users.htmlt, copy to /infx/local/etc and change there
  • see users list for the list of what information is available
  • see to sub-infx-alert.ini for warning and error thresholds