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.
FindNodeObject
- FindNodeObject(currentNode, key): Node
-
Look up Node object by either name or object id, will return
nullif object not found or not accessible. This function search for nodes only.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 set tonull.Table 1. Parameters currentNode
Lookup context or
nullif trusted nodes validation is disabled.key
Object name or id.
ReturnInstance of Node object or
nullif not found or not accessible.>>> FindNodeObject($node, "server.netxms.org") object >>> FindNodeObject(null, 12) object >>> FindNodeObject($node, "bad_node_name") NULL