You can just do "Execute script" on your node and try the following script from there:
It will print the result of executeSSHCommand() function.
One probable issue is that ssh communication goes through the agent that runs along with the server. So this agent should have
SubAgent = ssh
in it's configuration file (make sure you restart the agent after making the changes).
To debug you can add
DebugLevel = 6
to agent configuration file - agent log should give some information the moment when you execute your script.
Code Select
r = $node.executeSSHCommand("ping 8.8.8.8 repeat 3 timeout 1");
println(typeof(r));
println(r);It will print the result of executeSSHCommand() function.
One probable issue is that ssh communication goes through the agent that runs along with the server. So this agent should have
SubAgent = ssh
in it's configuration file (make sure you restart the agent after making the changes).
To debug you can add
DebugLevel = 6
to agent configuration file - agent log should give some information the moment when you execute your script.