Agent not able to get the node URL in a multi node system
In agent activity we are trying to get the server url using pxRequestor.pxReqContextURI property. But as for agents this data in pxRequestor page is not available. So we are getting empty string. We can't use DSS "PublicLinkURL" as it can contain a hardcoded string and in our case the agent can run in multiple nodes.
So, the question remains- How can we get server/node URL from agent activity? Is this at all possible?
We are using Pega 7.1.9.
Thanks for checking out the post. Your comments/suggestions are much appreciated.
***Updated by Moderator: Lochan. Removed user Ask the Expert tag. Apologies for confusion, shouldn't have been an end-user option***
May i know why you want to fetch server URL in the Agent Activity. Is it a different node in your Multinode environment or is it a different server for different application.
Please explain me in detail so that we can understand your requirement. Kindly share the screen print of your Clipboard page for this Agent thread so that we can see if the URL value has been populated in the clipboard.
Apologies for the lack of clarity in requirement. We have 14 nodes under a cluster and our Agent runs in multiple nodes. It processes diff interface messages and sends notification to a mailbox in case it encounters any errors( say parse exception). Once we receive the email, We know what is the error, but as we have multiple node with different PegaRules log file for each node, it will be good to have the URL of the node( as a node identifier) in the email so that we can go in and check the particular log file for further debugging instead of searching 16 log files. If we can suggest any alternative way of identifying the current node/jvm/server where the agent is executing, that will help as well.