Question
Asurion
US
Last activity: 4 Oct 2018 11:08 EDT
How to get the count of active users logged into the system automatically without logging into SMA.
How to get the count of active users logged into the system automatically without logging into SMA.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
IN
Hi
Try utilizing the OOTB listview "RequestorsOnline"
This listview returns the list of operators / connectors currently active
Pegasystems Inc.
IN
Designer Studio --> System --> Operations --> Requestors helps?
Asurion
US
Hi Phani,
Is there any way to get it using any activity or any java API?I need to get the count without manual intervention and using some utility in Pega.
Pegasystems Inc.
IN
could you please refer RULE-DECLARE-PAGES D_PZREQUESTORMANAGEMENT
Societe General
IN
Correct
Asurion
US
Thanks Phani..I could see this page loaded in SMA and could find the landing page section referring it as well. But not able to find the actual data page rule form rules explorer or the loading activity. Do you know if we need any specific role to view these rules?
Pegasystems Inc.
IN
yes Internal and final rules are filtered from search results. could you please try from records explorer --> instances of data page?
Asurion
US
I already have tried form records, but not able to find it..also tried view by right clicking on the class embed-requestor. No results found. Are you able to see it?
Pegasystems Inc.
IN
could you please try searching with old:D_pzRequestorManagement
(RULE-DECLARE-PAGES D_PZREQUESTORMANAGEMENT in ruleset Pega-LP-SystemSettings:07-10-15)
Pegasystems Inc.
US
alternatively this info should be available via JMX as well. refer this - JMX API code sample for PRPC MBeans
Asurion
US
Thank you so much I am able to see the rule as you mentioned. If you can also mention the old: phrase would be grateful. Thanks again for all your help.
Asurion
US
sorry if you can also please mention the significance of using old key word.
Asurion
US
Thanks Gopi
There are two ways to get requestor count
1) use the requestorManagement class in Pega/private API to get a list of requestors
reqResults.setValue(((PegaAPI)tools).getManagementAPI().getPegaRequestorManagement().getRequestors(estimateDataSize));
2) use the requestorManagement mbean. The mbeans are normally accessed via JMX to support prsysmgmt, but also can be accessed through undocumented method executeMbeanOperation.
PRPC ships an activity executeMbeanOperation in PegaAESRemote ruleset to allow AES to leverage the same API's as prsysmgmt using SOAP rather than platform-specific JMX RMI.
String result = (String)com.pega.pegarules.priv.management.MBeanManagement.executeMBeanOperation(aMBeanName, aOperationName, aParam1, aParam2, aParam3);
The jmx mbeans are documented in a zip files on PRPC media. If you have PRPC personal edition, you can go to jdk/bin/jconsole, attach jconsole to tomcat and explore the beans.
The PZREQUESTORMANAGEMENT rules use requestorManagement API's. PZREQUESTORMANAGEMENT rules have pyMethodStatus = Internal.
When a rule is marked as internal, it is normally hidden from rule search.
There are two ways to find a hidden rule
There are two ways to get requestor count
1) use the requestorManagement class in Pega/private API to get a list of requestors
reqResults.setValue(((PegaAPI)tools).getManagementAPI().getPegaRequestorManagement().getRequestors(estimateDataSize));
2) use the requestorManagement mbean. The mbeans are normally accessed via JMX to support prsysmgmt, but also can be accessed through undocumented method executeMbeanOperation.
PRPC ships an activity executeMbeanOperation in PegaAESRemote ruleset to allow AES to leverage the same API's as prsysmgmt using SOAP rather than platform-specific JMX RMI.
String result = (String)com.pega.pegarules.priv.management.MBeanManagement.executeMBeanOperation(aMBeanName, aOperationName, aParam1, aParam2, aParam3);
The jmx mbeans are documented in a zip files on PRPC media. If you have PRPC personal edition, you can go to jdk/bin/jconsole, attach jconsole to tomcat and explore the beans.
The PZREQUESTORMANAGEMENT rules use requestorManagement API's. PZREQUESTORMANAGEMENT rules have pyMethodStatus = Internal.
When a rule is marked as internal, it is normally hidden from rule search.
There are two ways to find a hidden rule
1- Use the 'old school' search. Since Pega 5 or 6, rule search has been based on full text. Prior to using text for rule search, rule search used rule names only using table pr4_rule_vw, which has rule names from all the rule types / tables. The 'old:' search syntax searches rule names against pr4_rule_vw. This is a very useful tool to keep in your back pocket for when full text search is broken, as well as to find the hidden internal rules.
2- Make yourself a 'pegaDeveloper'. Internal rules are not hidden to Pega Developers. If you look at when rule isAPegaDeveloper, you'll see that to be a 'PegaDeveloper' you create a ruleset named PegaDeveloper and add it to your application or access group. The ruleset can, and should, be empty -- just having it gives you access to the hidden rules.
Asurion
US
Thanks Andrew. Lot of good information and knowledge.
Accepted Solution
Pegasystems Inc.
IN
Hi
Try utilizing the OOTB listview "RequestorsOnline"
This listview returns the list of operators / connectors currently active
Asurion
US
Thank you Santanu. I am loving this forum as you guys are awesome
Virtusa Global IT Services Company
AU
Hi,
the listview "RequestorsOnline" will only fetch the users connected to the particular server.
If the environment is multi-node environment, then this will not work.
Pegasystems Inc.
IN
In that case, this particular post might help : How to programattically find the node a user logged in multi node environment without checking SMA
Euroclear
NL
Hi, Thanks ! Does this also fetches requestors active across all nodes in multi-node env ?
Is there further need to filter if 'browser' based active requestor count is needed ?
-
Guangri Liang
Frontier Communications
US
hi Santanu-
Can you show me where is RequestorsOnline locate in Designer Studio?
Thanks
J.P. Morgan Services India PVT Ltd
IN
Hey Larry,
RequestorsOnline is an instance of list view rule which is part of code-Pega-Requestor class and present in pega-wb:07-10-01