简体   繁体   English

获取连接的 ALM 用户数

[英]Getting Number of ALM user connected

I am trying to get number of user connections and License used in a ALM.我正在尝试获取 ALM 中使用的用户连接数和许可证。 I was able to accomplish it using Site Admin Console and SQL Queries.我能够使用站点管理控制台和 SQL 查询来完成它。 Is there a way where I can get it apart from above 2 solutions.除了上述两种解决方案之外,有没有办法让我得到它。 I also tried to automate the same monitoring using UFT which I was not able to do as the web properties of HP ALM is dynamically changing on a particular time interval.我还尝试使用 UFT 自动执行相同的监视,因为 HP ALM 的 web 属性在特定时间间隔内动态变化,因此我无法做到这一点。

DB Query used to get no of user connected数据库查询用于获取没有连接的用户

SELECT STATUS, COUNT(*) AS CNT FROM SYS.DM_EXEC_SESSIONS
GROUP BY STATUS
GO

If you're familiar with ALM SAClient API, you can retrieve this information by calling GetConnections.如果您熟悉 ALM SAClient API,则可以通过调用 GetConnections 检索此信息。 SAClient API is a COM technology library, you can invoke it by.Net Framework interop technology. SAClient API是一个COM技术库,可以通过.Net Framework互操作技术调用。 There is no other way to achieve this purpose.没有其他方法可以达到这个目的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM