Difference between revisions of "NXSL:GetNodeInterfaces"

From NetXMS Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ Get all interfaces for given node. '''Since:''' 1.2.0 == Syntax == GetNodeInterfaces(''node''); == Parameters == :{| |- | ''node'' || Node object...")
 
m (Text replacement - "^" to "{{deprecated}}")
 
Line 1: Line 1:
__NOTOC__
{{deprecated}}__NOTOC__
Get all interfaces for given node.
Get all interfaces for given node.



Latest revision as of 18:13, 13 September 2022

This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide)

Get all interfaces for given node.

Since: 1.2.0

Syntax

GetNodeInterfaces(node);


Parameters

node Node object. Predefined variable $node can be used to refer to current node in transformation script or event processing policy rule.


Return Value

Array of objects of class Interface, with first object placed at index 0. End of list indicated by array element with null value.


Examples

// Log names and ids of all interface objects for given node
interfaces = GetNodeInterfaces($node);
foreach(i : interfaces)
{
	trace(1, "Interface: name='" . i->name . "' id=" . i->id);
}