Hi Jan,
There are some properties set for the agent wrapper. You can view the same at the below JMX URL of agent (it will only be available if JMX is enabled).
http://
AGENT-HOSTNAME/IP:8282/invoke?operation=showWrapperProperties&objectname=Deployer%3Ainfo%3DdeployerManager
Now as you mentioned in your case you want to use the hostname which is set for each agent, you can use the same within the process by executing action "Get Environment Variable Value", setting the output variable and can be used in the process. In example below the wrapper parameters which will be listed in above JMX page is set.WRAPPER_HOSTNAME
More control can be have having a check on output "Was Found" to check for not found conditions.
Input
------------------------------
Regards,
Saurabh
------------------------------
Original Message:
Sent: 02-03-2020 01:58 AM
From: Jan Lindstam
Subject: System parameters for action, take 2
Hi
Our custom action needs few parameters, like host addresses. These are something which likely stay unchanged but can possibly someday change, so hardcoding is not an option. These parameters are always the same, even between environments. Would not like to set them as action input fields - action is already in use and would not want to go thru all 50 places where action is used and fill the values (even if obtained from some common process/application-wide parameter).
Initial thought was to make action read the needed values from system parameters. ROC has even system settings page where one could add new System parameter. But thats then applying only to ROC, right? System parameters would need to be set to all agents (wrapper.conf ) to get this working?
------------------------------
Jan
------------------------------