Skip to main content
1-Visitor
April 5, 2013
Solved

Determining info on connections

  • April 5, 2013
  • 1 reply
  • 5187 views

Hi all,

When I send "im servers" I get back a list of three servers, production, training and sandbox. One connection was initiated using im connect, one by logging in via the Java GUI and the other changing the viewset.

Is there a way to determine after the fact which connection was established by which source? How about which viewset the GUI is currently using? Both of these preferably from the command line interface.

Thanks,

Eric

    Best answer by JoeBartlett

    That's right. 'im servers' will return the following when you have an active connection:
    username@hostname:port (default)

    When your connection has timed-out or your client cannot connect:

    username@hostname:port (Offline) (default)

    username@hostname:port (Not connected) (default)

    Note that connections will not become disconnected due to idleness until at least 60 minutes pass. This is controlled by this property in the server's is.properties file:
    mksis.idleDisconnectTimeout=60

    Hope this sheds some light and have a good weekend!

    1 reply

    21-Topaz I
    April 5, 2013

    Sure, as long as you are running Integrity 9.7 (aka 2009 SP7) or later you should be able to see the information about connected users. You can get this from the Administration Client (im admingui) or from the CLI if you are granted the Admin permission. The command would be:

    im diag --diag=connections --hostname=[servername]

    The CLI will give you output similar to the GUI which looks like the attached screenshot.

    ConnectionsOutput.png

    Notice that my server has 'jbartlet' connecting both via a regular client and the web (desktop client shows nothing in that column). If there were any API connections they would be denoted with "api" in the line as well.

    Eric11-VisitorAuthor
    1-Visitor
    April 5, 2013

    Hi,

    Thanks for the info, looks like what I'd like to get but this won't be from an admin connection. I'm using Python to access MKS through the command line interface and most users aren't admins. Is there any other way to know if a GUI session is active, that might be good enough? I can probably ask Windows but asking MKS directly would be easier.

    Thanks,
    Eric

    21-Topaz I
    April 5, 2013

    Unfortunately that information is only accessible from Integrity. You could probably get open connections to the server machine from the netstat command but that doesn't really tell you which are Integrity users or how they are connecting.