I am accessing the Orchestrator UI via the FQDN of my load balancer server in a clustered setup. I need to get the name of the node on which the code is currently executing. How can I do that?
I found this JS script to be working.
var com = new Command(["printenv"]);
var res = com.execute(true); // makes the call blocking
var output = com.output;
var outString = output.match(/JAVA_PROXY_NON_PROXY([^\s]+)/)[1];
var nodeName = outString.split("|")[8];
System.log('vRO Node: ' + nodeName);
I found this JS script to be working.
var com = new Command(["printenv"]);
var res = com.execute(true); // makes the call blocking
var output = com.output;
var outString = output.match(/JAVA_PROXY_NON_PROXY([^\s]+)/)[1];
var nodeName = outString.split("|")[8];
System.log('vRO Node: ' + nodeName);