Script Example: Enumerate All Custom Attributes for Node

From NetXMS Wiki
Revision as of 13:52, 5 October 2020 by Phil (talk | contribs)
Jump to navigation Jump to search

WARNING: This page is no longer updated. Please visit NetXMS Scripting Language for current version of the documentation.



Requirements

Enumerate all custom attributes on a node.


Solution

Note: this script requires NetXMS version 2.0.2 or higher.

attributes = $node->customAttributes;
foreach(a : attributes->keys)
{
        println a . "=" . attributes[a];
}