VMware Cloud Community
mayank_goyal
Enthusiast
Enthusiast
Jump to solution

How to get the node name in a clustered vRO Setup?

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?



-
For more interesting content on Aria Automation, check my blog:
https://cloudblogger.co.in
0 Kudos
1 Solution

Accepted Solutions
mayank_goyal
Enthusiast
Enthusiast
Jump to solution

mayank_goyal_0-1686045271481.png

 

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);

 

 

 

 



-
For more interesting content on Aria Automation, check my blog:
https://cloudblogger.co.in

View solution in original post

0 Kudos
1 Reply
mayank_goyal
Enthusiast
Enthusiast
Jump to solution

mayank_goyal_0-1686045271481.png

 

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);

 

 

 

 



-
For more interesting content on Aria Automation, check my blog:
https://cloudblogger.co.in
0 Kudos