Brian Madden Logo
Your independent source for application and desktop virtualization.
advertisement

Script to enumerate all users sessions and kill them, in the Scripting / Automation forum on BrianMadden.com

rated by 0 users
Answered (Not Verified) This post has 0 verified answers | 2 Replies | 2 Followers

Not Ranked
Points 150
Carsten Thue posted on Fri, Feb 20 2009 9:20 AM

Hi guys

 

I'm having a bit of a problem here. I have 10 xenapp servers with a bunch of users on running Lotus Notes 7 across these servers.

The Notes 7 client has a problem that it wont run 2 instances of the app for a users.

My problem is that sometimes users get disconnected and is unable to reconnect to the same session, and then again unable to open his/her Notes client in another session.

Logging off/resetting disconnected sessions automaticaly via the portlistener after a given time is not the ideal solution, because some users need this functionality for batch jobs ect.

So what i need is a tool/script a user can run to clean out any disconnected sessions they may have running on the farm.

Has any of you guys done or seen such a functionality anywhere??

Best regards

Carsten Thue

  • | Post Points: 35

All Replies

Top 10 Contributor
Points 48,501
Suggested by Dan Murray

The biggest problem is that in order to terminate or log off a session, your user would need administrative rights to do it.  This would mean granting every user almost full admin rights, which I'm guessing you won't want to do.  You might want to look into configuring your farm/connections so that disconnected sessions get reset, rather than left running.

Why is it called "Common Sense"? It doesn't seem all that common!

  • Post Points: 5
Top 10 Contributor
Points 24,510

Hi,

I think you need to tackle the root cause. It seems that ICA sessions are getting disconnected, which isn't normal behavior for a published application. You need to figure out why this is happening.

If you have a less than perfect network connection between users and your farm, then consider enabling session reliability. SR will maintain the active session on the farm until the client has a chance to reconnect.

You can also use workspace controls to deal with this.

It sounds like users are trying to reconnect to the server before the ICA keep-alive timer has expired, so a new session is created instead. Try lowering your ICA timeout value and educate users to not reconnect immediately (I know, good luck on that).

Finally, you can limit the number of instances of Lotus Notes to one to prevent users establishing a new session. If they do happen to reconnect prior to the ICA keepalive timer changing the state of the existing session to disconnected, they'll receive an error about too many instances of Notes and on a second attempt they should get connected to the existing session (after the keepalive timer expires).

Alan Osborne

President (MCSE, CCNA, VCP, CCA)

VCIT Consulting - Citrix/Terminal Services Remote Desktop Solutions for SMB

VCIT website My Blog

  • | Post Points: 5
Page 1 of 1 (3 items) | RSS