Topic
  • 3 replies
  • Latest Post - ‏2012-10-19T11:28:08Z by Lumart
SystemAdmin
SystemAdmin
24948 Posts

Pinned topic How to tell different type of clients using API?

‏2012-10-12T17:29:22Z |
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)

Thanks!

Wai Tsoi
Updated on 2012-10-19T11:28:08Z at 2012-10-19T11:28:08Z by Lumart
  • Leesa_Hicks
    Leesa_Hicks
    269 Posts

    Re: How to tell different type of clients using API?

    ‏2012-10-18T17:42:29Z  
    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.
    Leesa Hicks
    Principal Engineer
    Tektronix Instruments
  • SystemAdmin
    SystemAdmin
    24948 Posts

    Re: How to tell different type of clients using API?

    ‏2012-10-18T18:18:07Z  
    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.
    Leesa Hicks
    Principal Engineer
    Tektronix Instruments
    Hi Leesa,

    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.

    Thanks
    Wai Tsoi
  • Lumart
    Lumart
    87 Posts

    Re: How to tell different type of clients using API?

    ‏2012-10-19T11:28:08Z  
    Hi Leesa,

    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.

    Thanks
    Wai Tsoi
    CQ API can only distinguish between web and client sessions.
    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.