News:

We really need your input in this questionnaire

Main Menu

Tools > Find Object > query

Started by Hospital, December 06, 2019, 02:24:55 PM

Previous topic - Next topic

Hospital

Hi all,

What kind of language / syntax required for querying objects, from Management Console? By clicking Tools > Find object > query

Tatjana Dubrovica

It's similar to object query dashboard element: NXSL script is executed for every node in the system and if script return true - iti will be included in the list.

Some examples:
1:
haveAlarms = { return $node->alarms->size > 0; }
type == NODE and haveAlarms

2:
type == NODE and name match "^EPE.*"

3:
true

Last will return all objects

deepjohnsea

1:
haveAlarms = { return $node->alarms->size > 0; }
type == NODE and haveAlarms

Above query mistake.
Corrected^
with
haveAlarms = { return $node->alarms->size > 0; }
type == NODE and haveAlarms