FindNodeByAgentId
- FindNodeByAgentId(agentid, currentNode): Node
-
Look up Node object by agent ID.
If trusted node validation is enforced,
currentNodeshould point to execution context object (instance of NetObj,$nodein most cases). If trusted nodes are disabled (default server configuration),currentNodecan be omitted or set tonull.Table 1. Parameters agentid
String
Agent ID.
currentNode
Lookup context or
nullif trusted nodes validation is disabled. Optional parameter.ReturnInstance of Node object or
nullif not found or not accessible.node = FindNodeByAgentId("7e54f964-8942-504f-90eb-70e5d6abee92", $node); if (node != NULL) println(node.name); // Prints node name if node with given agent ID is found