Precisely Speaking
May 21, 2012, 07:20:54 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: So what's news with you? Tell us about it in "Getting To Know You"!
Home
Help
Calendar
Login
Register
Precisely Speaking
>
Training and Education
>
U2 Programming Questions
>
Clearing Locked Records/Sessions for Disconnected Users
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Clearing Locked Records/Sessions for Disconnected Users (Read 914 times)
Tom Pellitieri
Rock Star
Posts: 171
Tom Pellitieri - Toledo, Ohio
Clearing Locked Records/Sessions for Disconnected Users
«
on:
May 13, 2011, 11:43:52 AM »
Our field employees use laptops with wireless network cards to connect to our system through our VPN. Unfortunately, they are sometimes in poor reception areas, and their connections get dropped. This leaves their sessions connected, and any open items locked.
So far, the only way I know to free up the locked records cleanly is to tandem to the port and save or escape out of the screen. Also, there are times when the buffer is full, and I wind up using stopudt or (worse case) deleteuser to end the detached session.
Unfortunately, I can only do these from the root account, which means that they must contact an administrator to free up the locks.
Does anyone know of a way for a user to disconnect a previous session without having to get an administrator involved??
--Tom Pellitieri, Century Equipment
Logged
Colin Alfke
Professional
Posts: 22
Re: Clearing Locked Records/Sessions for Disconnected Users
«
Reply #1 on:
May 13, 2011, 09:04:05 PM »
I think with stopudt the user can logoff their own process (it may depend on platform - I've only tried it on Windows). So you may be able to set something up for them to clear there own sessions.
Another thought would be to have the users connect to something like a terminal server which is more robust about dealing with dropped connections.
hth
Colin
Logged
Tom Pellitieri
Rock Star
Posts: 171
Tom Pellitieri - Toledo, Ohio
Re: Clearing Locked Records/Sessions for Disconnected Users
«
Reply #2 on:
May 16, 2011, 11:51:51 AM »
Thanks for the feedback. I was able to create a process that did the following:
1) AIX command "who am i" to determine current login and device
2) AIX command "listuser | grep udt | grep <user>" to get all instances of user login
3) Prompt the user to log off sessions from (2) not returned in (1)
4) AIX command "stopudt" for each process to eliminate (if requested)
We'll see how it goes...
--Tom
Logged
Colin Alfke
Professional
Posts: 22
Re: Clearing Locked Records/Sessions for Disconnected Users
«
Reply #3 on:
May 17, 2011, 06:56:40 AM »
Don't forget that UD will give you a lot of these without having to shell out (and worry about O/S specific commands).
Look at @LOGNAME, @USERNO, LISTUSER, and even GETUSER and GETENV.
Good luck
Colin
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> Getting To Know You
=> Announcements
=> Big Thoughts / Cool Ideas
=> Rants & Raves
-----------------------------
Application Support
-----------------------------
=> Red Leaf
=> Activant/Prelude Support
=> Summit Support
=> Avante Support
=> PRC Support
-----------------------------
Training and Education
-----------------------------
=> Connect!
=> U2 Programming Questions
=> SB+ Programming Questions
=> Web Programming Questions
=> Business Intelligence / MITS
=> PC / Hardware / Miscellaneous Support
Loading...