Quote from: Filipp Sudanov on July 10, 2026, 01:31:03 PMДа, так правильно. Ну или можно чуть более лаконично:if (($node.name in ["ISW001", "ISW002", "ISW003"]) and ($1.name ~= "^VLAN.*"))
{
return false; // не создавать VLAN-интерфейсы
}
return true;
[16.07.2026 10:31:44] **** Poll request sent to server ****
[16.07.2026 10:31:44] Poll request accepted, waiting for outstanding polling requests to complete...
[16.07.2026 10:31:44] Starting configuration of for node <nodename>
[16.07.2026 10:31:44] Checking node's capabilities...
[16.07.2026 10:31:44] Checking NetXMS agent...
[16.07.2026 10:32:14] Cannot connect to NetXMS agent (Request timeout)
[16.07.2026 10:32:14] SNMP polling is disabled
[16.07.2026 10:32:14] EtherNet/IP polling is disabled
[16.07.2026 10:32:14] Modbus TCP polling is disabled
[16.07.2026 10:32:14] Capability check finished
[16.07.2026 10:32:14] Checking interface configuration...
[16.07.2026 10:32:14] Unable to get interface list from node
[16.07.2026 10:32:14] Interface configuration check finished
[16.07.2026 10:32:14] Checking node name
[16.07.2026 10:32:14] Node name cannot be interpreted as valid IP address, no need to resolve to host name
[16.07.2026 10:32:14] Updating general system hardware information
[16.07.2026 10:32:14] Processing template automatic apply rules
[16.07.2026 10:32:14] Processing container autobind rules
[16.07.2026 10:32:14] Processing cluster autobind rules
[16.07.2026 10:32:14] Finished configuration poll of node <nodename>
[16.07.2026 10:32:14] Node configuration was not changed after poll
[16.07.2026 10:32:14] **** Poll completed successfully ****2026.07.16 08:20:21.884 *D* [comm ] Incoming connection from <server-ip>
2026.07.16 08:20:21.884 *D* [comm ] Connection from <server-ip> accepted
2026.07.16 08:20:21.884 *D* [comm.cs.4 ] Session registered (control=true, master=true, upgrade=true)
2026.07.16 08:20:21.884 *D* [comm.cs.4 ] Message dump:
** 000000 | 00 B6 50 20 00 00 00 10 00 00 00 00 00 00 00 00 | ..P ............
** code=0x00B6 (CMD_GET_NXCP_CAPS) version=5 flags=0x0020 id=0 size=16 numFields=0
** control message
2026.07.16 08:20:21.884 *D* [comm.cs.4 ] Received control message CMD_GET_NXCP_CAPS
2026.07.16 08:20:21.884 *D* [comm.cs.4 ] Using protocol version 5
2026.07.16 08:20:21.884 *D* [comm.cs.4 ] Sending message CMD_NXCP_CAPS (ID 0; size 16; uncompressed)
2026.07.16 08:20:21.884 *D* [comm.cs.4 ] Outgoing message dump:
** 000000 | 00 B7 50 20 00 00 00 10 00 00 00 00 05 00 00 00 | ..P ............
** code=0x00B7 (CMD_NXCP_CAPS) version=5 flags=0x0020 id=0 size=16 numFields=83886080
** control message
2026.07.16 08:20:21.884 *D* [comm.cs.4 ] Message dump:
** 000000 | 01 34 50 00 00 00 00 38 00 00 00 01 00 00 00 05 | .4P....8........
** 000010 | 00 00 00 97 03 01 00 01 00 00 02 17 03 01 00 01 | ................
** 000020 | 00 00 02 18 03 01 00 01 00 00 02 3A 03 01 00 01 | ...........:....
** 000030 | 00 00 03 12 03 01 00 01 | ........
** code=0x0134 (CMD_SET_SERVER_CAPABILITIES) version=5 flags=0x0000 id=1 size=56 numFields=5
** 000000: [ 151] INT16 1
** 000008: [ 535] INT16 1
** 000010: [ 536] INT16 1
** 000018: [ 570] INT16 1
** 000020: [ 786] INT16 1
2026.07.16 08:20:21.884 *D* [comm.cs.4 ] Received message CMD_SET_SERVER_CAPABILITIES (1)
2026.07.16 08:20:22.224 *D* [dc ] DataCollector: sleeping for 60 seconds
2026.07.16 08:20:47.229 *D* [comm.cs.1 ] Session disconnected by watchdog (timestamp = 110222679040, now = 110222799452)
2026.07.16 08:20:47.229 *D* [comm.cs.1 ] CommSession::disconnect()
2026.07.16 08:20:51.885 *D* [comm.cs.4 ] Communication channel closed by peer
2026.07.16 08:20:51.921 *D* [comm ] Incoming connection from <server-ip>
2026.07.16 08:20:51.921 *D* [comm ] Connection from <server-ip> accepted
2026.07.16 08:20:51.921 *D* [comm.cs.5 ] Session registered (control=true, master=true, upgrade=true)
2026.07.16 08:20:51.921 *D* [comm.cs.5 ] Message dump:
** 000000 | 00 B6 50 20 00 00 00 10 00 00 00 00 00 00 00 00 | ..P ............
** code=0x00B6 (CMD_GET_NXCP_CAPS) version=5 flags=0x0020 id=0 size=16 numFields=0
** control message
2026.07.16 08:20:51.921 *D* [comm.cs.5 ] Received control message CMD_GET_NXCP_CAPS
2026.07.16 08:20:51.921 *D* [comm.cs.5 ] Using protocol version 5
2026.07.16 08:20:51.921 *D* [comm.cs.5 ] Sending message CMD_NXCP_CAPS (ID 0; size 16; uncompressed)
2026.07.16 08:20:51.922 *D* [comm.cs.5 ] Outgoing message dump:
** 000000 | 00 B7 50 20 00 00 00 10 00 00 00 00 05 00 00 00 | ..P ............
** code=0x00B7 (CMD_NXCP_CAPS) version=5 flags=0x0020 id=0 size=16 numFields=83886080
** control message
2026.07.16 08:20:51.922 *D* [comm.cs.5 ] Message dump:
** 000000 | 01 34 50 00 00 00 00 38 00 00 00 01 00 00 00 05 | .4P....8........
** 000010 | 00 00 00 97 03 01 00 01 00 00 02 17 03 01 00 01 | ................
** 000020 | 00 00 02 18 03 01 00 01 00 00 02 3A 03 01 00 01 | ...........:....
** 000030 | 00 00 03 12 03 01 00 01 | ........
** code=0x0134 (CMD_SET_SERVER_CAPABILITIES) version=5 flags=0x0000 id=1 size=56 numFields=5
** 000000: [ 151] INT16 1
** 000008: [ 535] INT16 1
** 000010: [ 536] INT16 1
** 000018: [ 570] INT16 1
** 000020: [ 786] INT16 1
2026.07.16 08:20:51.922 *D* [comm.cs.5 ] Received message CMD_SET_SERVER_CAPABILITIES (1)
2026.07.16 08:20:52.229 *D* [comm.cs.2 ] Session disconnected by watchdog (timestamp = 110222679791, now = 110222804453)
2026.07.16 08:20:52.229 *D* [comm.cs.2 ] CommSession::disconnect()
2026.07.16 08:20:57.229 *D* [comm.cs.3 ] Session disconnected by watchdog (timestamp = 110222687458, now = 110222809453)
2026.07.16 08:20:57.230 *D* [comm.cs.3 ] CommSession::disconnect()
2026.07.16 08:21:21.922 *D* [comm.cs.5 ] Communication channel closed by peer
2026.07.16 08:21:22.224 *D* [dc ] DataCollector: sleeping for 60 seconds
2026.07.16 08:21:56.957 *D* [comm ] Incoming connection from <server-ip>
2026.07.16 08:21:56.957 *D* [comm ] Connection from <server-ip> accepted
2026.07.16 08:21:56.957 *D* [comm.cs.6 ] Session registered (control=true, master=true, upgrade=true)