Script Example: Enumerate All Custom Attributes for Node
Revision as of 18:13, 13 September 2022 by AlexKirhenshtein (talk | contribs) (Text replacement - "^" to "{{deprecated}}")
This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide) |
WARNING: This page is no longer updated. Please visit NetXMS Script examples 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];
}