This is the documentation for the development version.
There are no official binaries for it; build it from the source code in git.
Download links on these pages work only after the release.
For the current release, see version 7.0.
FindObject
- FindObject(key, currentNode): NetObj
-
Look up any object inherited from NetObj (Node, Interface, Cluster, etc.) by either name or object 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 key
String or Integer
Object name or id.
currentNode
Lookup context or
nullif trusted nodes validation is disabled. Optional parameter.ReturnInstance of object inherited from NetObj or
nullif not found or not accessible. Type of the object can be verified using function classof.node = FindObject("Infrastructure Services"); //Will find object with name "Infrastructure Services" println(node.name); //Will print "Infrastructure Services" println(node.id); //Will print "2"