on 01-28-2010 9:06 AM
Hi.
I've been hunting around the forums and through the SDK documentation, but to no avail.
My problem is retrieving the current active session count on our server. Any pointers is appreciatedt.
I know the information is to be found in the CMC but I need the count for our support center statistics.
Tom
Hi,
thank you for your code,
I'm using your query with a little customization
Select
SI_LOGON_ALIAS, SI_APSNAME, SI_NAME, SI_LAST_ACCESS
from ci_systemobjects
where
SI_KIND='Connection' and
SI_PARENTID=41 and
SI_AUTHEN_METHOD != 'server-token' and
SI_FAILOVER_AVAILABLE_UNTIL is NULL
and I've found CMC and query output are always the same
Best regards
Francesco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI again...
Found a way to match the sessions shown in the CMS. I'm currently using the following query and it seems to work:
Select *
from ci_systemobjects
where
SI_PARENTID=41 and
SI_AUTHEN_METHOD != 'server-token' and
SI_FAILOVER_AVAILABLE_UNTIL is NULL
Tom
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've found one addition which seems to help a bit:
SI_AUTHEN_METHOD != 'server-token'
But still there is quite a few extra logons...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi again.
I've been using the query from the solution above and it is somehow correct.
But I've noticed a difference between the session count in the CMC and the number returned by the query, the query "always" gives a somewhat higher count than the active sessions shown in the CMS.
Any ideas about what could cause that and how to remove the extra hits?
Tom
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
IInfoObjects sessions =
infoStore.query("select * from ci_systemobjects where SI_PARENTID=41);
int sessiionCount = sessions.size();
Enjoy
Johannes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.