In 1.0.0-rc1 I have added new NXSL function FindNodeObject. It takes two arguments: current node object and ID or name of node of interest. It can be used as following:
Best regards,
Victor
Code Select
sub main()
{
// Search for node named "gateway"
gw_node = FindNodeObject($node, "gateway");
if (gw_node == null)
return 0; // No such node or access denied
// from here, gw_node can be used in a same way as $node, for example:
status = GetDCIValue(gw_node, FindDCIByDescription(gw_node, "Status"));
return 1;
}
Best regards,
Victor
