Yes, you have to get node object first. Global variables $node and $object refer to current node. You can use function FindObject to get other objects. This function accepts either object ID or name. For example, if you want to print alarms for node named "netxms-server":
Best regards,
Victor
Code Select
node = FindObject("netxms-server");
for(a : node->alarms)
{
println(a->message);
}
Best regards,
Victor