How to find appserver name for connected user

Posted by Tony on 22-Aug-2017 23:13

Hi all,

Is there a way to find the name of the appserver that a user is connected to so that we can use the ASBMAN command?

What we want to achieve is to be able to generate a script to issue a kill command, via ASBMAN, to the agent the user is connected to.

Thanks,

Tony.

Posted by kevin hermans on 28-Aug-2017 07:25

With next command an output is generated for all connections of all AppServer instances (current DLC).

The only thing you have to do is parse the output and grep the info needed.

asbman -all -clientdetail 'all'  

All Replies

Posted by Roy Ellis on 28-Aug-2017 07:25

Hi Tony,

the most common way to figure out which users is connected to which AppServer agent is to have the user log into the AppServer (using the srvrConnectProc or srvrActivateProc).  Then scan the *.server.log file for the users name.  

Other than that, you might be able to use the "asbman -listclients" to get a summary of the clients connected and then use the "asbman -clientdetail (connHdl)" to get detailed information about a specific connection.

Roy

Posted by kevin hermans on 28-Aug-2017 07:25

With next command an output is generated for all connections of all AppServer instances (current DLC).

The only thing you have to do is parse the output and grep the info needed.

asbman -all -clientdetail 'all'  

Posted by Tony on 28-Aug-2017 16:47

Thank you Roy/Kevin for your suggestions.

This thread is closed