NXSL:GetNodeInterfaces

From NetXMS Wiki
Jump to navigation Jump to search
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);
}