NetXMS not support /31

Started by kronicklez, February 22, 2025, 09:56:27 AM

Previous topic - Next topic

kronicklez

Hi all,

Currently my router was using /31 for p2p interface. When it discover by NetXMS it said "invalid network mask" ... It it nextxms not support /31?

Thanks and appreciate any feedback

Victor Kirhenshtein

There is flaw in subnet object creation logic - server ignores /32 on interfaces, but not /31. I just fixed that, now /31 on peer-to-peer links are handled correctly. Fix will be included into upcoming patch release.

Best regards,
Victor

kronicklez

Hi Victor,

I'm already install version 5.1.4. But the issue still same. Can u verify it.

Thanks

Filipp Sudanov

Pls try to delete the subnet object (make sure that you nodes are also present in some container so that they are not getting deleted).

Then on conf poll subnet should be recreated again - check if the bug persists then.

kronicklez

Hi,

I just check the /31 not display in subnet object so i dont know how to delete it. All the device discovered has been put into container.

Thanks and appreciate your feedback

Filipp Sudanov

Please do "Execute script" from context menu of the node and run the following:

for (p : $object.parents) println(classof(p), p.name .. " (" .. p.id .. ")" );

It will output all containers and subnets where this node is present along with their IDs in brackets. You can use this ID to search under Entire network by entering #123 in the filter (replace 123 with actual id)

kronicklez

Hi Filipp,

May i know where to go to "context menu" tab? Is it select device and right click then choose "execute server script"?

Thanks and appreciate your feedback

Filipp Sudanov

Yes, right, that's "execute server script" from the menu that opens on the right-click on the device

kronicklez

Hi Filipp,


Do u mean just copy paste this command "for (p : $object.parents) println(classof(p), p.name .. " (" .. p.id .. ")" );"  at which text box when i already click "execute script" need to paste? It have three textbook "script from library", "parameters" and "source".


Thanks and appreciate your guide.

Filipp Sudanov

You should paste it into the "Source". Then click "Execute" button on the toolbar (or F9 key on the keyboard) and it should produce some output in "Output".

kronicklez

Hi Filipp,


Below is the output after i execute that script.

Subnet 10.0.0.0/8 (200)
Subnet 128.0.0.0/2 (201)
Subnet fec0::/64 (202)
Subnet 1200:3a::/112 (620)
Subnet 105.10.10.0/30 (628)
Container PE-Juniper (695)
*** FINISHED ***
Result:

Filipp Sudanov

You can try deleting 105.10.10.0/30 subnet object. Then run configuration poll on the device - subnet should be recreated again. 

kronicklez

Hi Filipp,

The alarm keep coming back after 1 hours. 

Appreciate if u can take look this issue.

Thanks