FindNodeBySysName
- FindNodeBySysName(sysname, currentNode): Node
-
Look up Node object by SNMP sysName.
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 sysname
String
SNMP sysName.
currentNode
Lookup context or
nullif trusted nodes validation is disabled. Optional parameter.ReturnInstance of Node object or
nullif not found or not accessible.node = FindNodeBySysName("switch-main"); if (node != NULL) println(node.name); // Prints node name if node with given sysName is found