Book a Demo

Author Topic: Currently logged users  (Read 8261 times)

Knut Paulsen

  • EA User
  • **
  • Posts: 82
  • Karma: +1/-0
    • View Profile
Currently logged users
« on: May 31, 2013, 06:28:51 pm »
Hi guys,

Is there a way to find out exactly which users are logged on to a specific project right now?

Cheers
Knut

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Currently logged users
« Reply #1 on: May 31, 2013, 06:38:55 pm »
You need to ask your DBA what the RDBMS offers in that direction.

q.

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Currently logged users
« Reply #2 on: May 31, 2013, 06:39:26 pm »
I can't see a way via standard Sparx SQL schema or the automation interface. You could use your databases built in schema (depending upon your database) to query active users. Which database are you using ?
« Last Edit: May 31, 2013, 06:40:25 pm by openit »

Knut Paulsen

  • EA User
  • **
  • Posts: 82
  • Karma: +1/-0
    • View Profile
Re: Currently logged users
« Reply #3 on: May 31, 2013, 06:51:44 pm »
Thanks for replies :-)

We use MySql, but we all share a common DB user. Is it possible to find out how many times this user has connected?

So EA does not record the fact that a specific user logs on or off?

Cheers
Knut

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Currently logged users
« Reply #4 on: May 31, 2013, 07:12:24 pm »
I'm not sure as we don't use MySQL - you would have to check with you dba/google/mysql forums to see if you can query the number of active connections/sessions...but you may not get an accurate figure due to connection pooling etc...

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Currently logged users
« Reply #5 on: May 31, 2013, 07:14:31 pm »
Ops sorry didn't read final part of your post - if you have auditing turned on in EA you might be able to see who log into sparx - i can't remember if its shown in the audit log - i think it just shows who has made a change - you would have to test...

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Currently logged users
« Reply #6 on: May 31, 2013, 07:43:07 pm »
EA does not log a login. The audit just logs changes. You might check the open sockets on the server side. But that's only a vague indication to whether a user is still "logged on" as there is no "log off" sent. Just the connection dies away after some time.

So in general: no way.

May I ask for what reason you want to have the user list? What is the use case?

q.

Knut Paulsen

  • EA User
  • **
  • Posts: 82
  • Karma: +1/-0
    • View Profile
Re: Currently logged users
« Reply #7 on: May 31, 2013, 07:47:04 pm »
The reason I came to think about this is that I often see locked diagrams in my model. It appears like EA not always will reset a lock when a user logs out. So, I was thinking that if the user holding the lock is still logged on I can call him, if not I can safely reset the lock.

Cheers
Knut

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Currently logged users
« Reply #8 on: June 01, 2013, 12:32:00 am »
If a user locks a diagram to edit it, he has obviously reasons for doing so. In the case where users forget to unlock anything the best approach is: a) walk in, b) phone, c) mail, d) force unlock.

q.