I got a simple question: In ClearQuest, in my hooks, is there way to tell the actual client user is using, for example, distinguishing between Eclipse, CCRC, Thick client, cq-web, and API access? We're trying to run some inventory and I can't seem to find the API that point to that.
I understand hooks will not run until user execute a certain action, so my goal is to learn about the user when they act on a record (well I know I can do something with global script when it's loaded but that's beyond the topic of this discussion)
Pinned topic How to tell different type of clients using API?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-10-19T11:28:08Z at 2012-10-19T11:28:08Z by Lumart
Leesa_Hicks 1200009HC4269 Posts
Re: How to tell different type of clients using API?2012-10-18T17:42:29ZThis is the accepted answer. This is the accepted answer.There is a documented method for determining whether the client is a web client by testing for a session variable. For 7.1.1, see https://publib.boulder.ibm.com/infocenter/cqhelp/v7r1m0/topic/com.ibm.rational.clearquest.schema.ec.doc/topics/c_detecting_ssn_w_hooks.htm.
Not sure about the rest.
SystemAdmin 110000D4XK24948 Posts
Re: How to tell different type of clients using API?2012-10-18T18:18:07ZThis is the accepted answer. This is the accepted answer.
- Leesa_Hicks 1200009HC4
Thank you for your reply. Yeah that's the way to tell between web and non-web. However I'm trying to get more insights into the actual desktop client used, meaning whether they are using thick client, eclipse client, CCRC, or perhaps even accessing using cqperl directly.
Lumart 120000GQG687 Posts
Re: How to tell different type of clients using API?2012-10-19T11:28:08ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
If you want to distinguish between, say, a thick client and an eclipse client, you should check the active processes.
When working with the eclipse client, there must be a javaw active process, dependent on a clearquest process.
This is what you would get running pslist -t (under Windows OS) when you are using the eclipse client:
clearquest 6044 8 1 28 48872 3896 1152
javaw 3604 8 27 560 879400 145892 132276
When using the thick client, you would get this output:
clearquest 4604 8 1 46 62548 4128 1320
clearquest 7144 8 10 262 278700 36792 17984
The same logic applies to CCRC or the command line.