# Installation Guide

## 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:

Modifier | Description
--- | ---
`-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:

    ==============================================================================
    EMSRV 7.0 for Windows NT/2000  Aug  1 2000 22:28:51 (EST)
    Operating system: Windows NT Workstation 4.0.1381 Service Pack 4 (1 Processor -
    255 MB Memory)
    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.
    ==============================================================================

[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]