NXSL:FindDCIByName

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

Find DCI by name (search is case-insensetive).


Syntax

FindDCIByName(node, parameter name);


Parameters

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


Return Value

DCI ID on success or 0 if DCI with matching name was not found.


Examples

FindDCIByName($node, "Agent.Uptime")	-> 5   /* perhaps */
FindDCIByName($node, "bad")		-> 0