Listing current connections (list command)
The list command lists current connections for to a repository server. This command sends a message to the host running EMSRV and requests the list of connections. Information about connection statistics and active locks can be obtained using the list command modifiers. 
Note:
To verify that all clients are disconnected, use the list operation before stopping EMSRV. 
The syntax for the list command is: 
EMADMIN list [command modifiers] [<host>-P[<port number>]]
The list command has the following modifiers: 
 |  | 
-s[<connection number>]  |  Displays the statistics for the connection specified by <connection number>.   | 
-l<connection number>]  |  Displays the active locks for the connection specified by <connection number>.   | 
<host>  | Specifies the host name or IP address of the server where EMSRV is running. If you don't specify a host, the default is the name of the host from which you are issuing the emadmin command.   | 
-P <port number>  | This is an optional parameter that specifies the port that EMSRV is using . The default numbers is 4800.  | 
 
For example: 
emadmin list emsrv.ibm.com
Running this command produces output such as the following: 
==============================================================================
7.2.5.0 Nov 12 2021 22:02:54 (EST)
Operating system: Windows 2000 Professional (NT 6.2.9200)  (12 Processors - 16136 MB Memory) (Standalone Workstation) 
Code page (ANSI): 1252
 
                    Active  Last
 ID IP Address      Locks   Request  Socket  File
------------------------------------------------------------------------------
  0 9.25.62.92      0      09:58:23     808  e:\emsrv\vast\va000816_dev.dat
  1 9.25.62.110     0      17:09:52     456  e:\emsrv\vast\va000816_dev.dat
  3 9.25.62.108     0      16:49:02    1668  e:\emsrv\vast\va000816_dev.dat
  8 9.25.62.111     0      14:13:10    1196  e:\emsrv\vast\va000816_dev.dat
------------------------------------------------------------------------------
 
There are 4 active connections.
==============================================================================
Last modified date: 01/15/2023