Script Example: Enumerate All Custom Attributes for Node

Revision as of 17:50, 22 January 2016 by Victor (talk | contribs) (Created page with "'''Requirements''' Enumerate all custom attributes on a node. '''Solution''' Note: this script requires NetXMS version 2.0.2 or higher. <syntaxhighlight lang="c"> attribu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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];
}