Difference between revisions of "NXSL:CreateNode"

From NetXMS Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ Create node object. '''Since:''' 1.2.7 == Syntax == CreateNode(''parent'', ''name'', ''primaryHostName''); == Parameters == :{| |- | ''parent'' || Parent objec...")
(No difference)

Revision as of 17:17, 24 May 2014

Create node object.

Since: 1.2.7

Syntax

CreateNode(parent, name, primaryHostName);


Parameters

parent Parent object. Can be either container or infrastructure services root. Reference to parent object can be obtained using FindObject function.
name Name for new node object.
primaryHostName primary host name for new node object. Must be valid IP address or resolvable host name.


Return Value

Reference to newly created object.


Examples

 CreateNode(FindObject(2), "SERVER", "10.10.10.1");    // Create node directly under "Infrastructure Services"