FindNodeByIPAddress is a function, so you should not add "Objects." in front of it. Dot is string concatenation operation in NXSL (we plan to change that in 5.0, but that's another story) - so Objects . FindNodeByIPAddress concatenates null value converted to empty string from non-existent variable "Objects" with object returned by FindNodeByIPAddress converted to string - so result is a string.
Correct script will be something like this:
Best regards,
Victor
Correct script will be something like this:
Code Select
node = FindNodeByIPAddress($1, null);
if (node == NULL) {
println("Error: node not found.");
return;
}
println(node->name);
println(node->executeSSHCommand("ip address print"));
Best regards,
Victor