NetXMS Support Forum

English Support => General Support => Topic started by: kronicklez on February 22, 2025, 09:56:27 AM

Title: NetXMS not support /31
Post by: kronicklez on February 22, 2025, 09:56:27 AM
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
Title: Re: NetXMS not support /31
Post by: Victor Kirhenshtein on February 23, 2025, 09:28:20 PM
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
Title: Re: NetXMS not support /31
Post by: kronicklez on March 14, 2025, 03:56:50 AM
Hi Victor,

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

Thanks
Title: Re: NetXMS not support /31
Post by: Filipp Sudanov on March 18, 2025, 04:34:06 PM
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.
Title: Re: NetXMS not support /31
Post by: kronicklez on March 21, 2025, 03:59:31 AM
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
Title: Re: NetXMS not support /31
Post by: Filipp Sudanov on March 21, 2025, 12:46:45 PM
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)
Title: Re: NetXMS not support /31
Post by: kronicklez on March 24, 2025, 03:16:23 AM
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
Title: Re: NetXMS not support /31
Post by: Filipp Sudanov on March 24, 2025, 09:44:15 AM
Yes, right, that's "execute server script" from the menu that opens on the right-click on the device
Title: Re: NetXMS not support /31
Post by: kronicklez on March 25, 2025, 08:21:40 AM
Hi Filipp,


Do u mean just copy paste this command "for (p : $object.parents) println(classof(p), p.name (https://www.netxms.org/forum///p.name) .. " (" .. p.id (https://www.netxms.org/forum///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.
Title: Re: NetXMS not support /31
Post by: Filipp Sudanov on March 25, 2025, 08:33:00 AM
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".
Title: Re: NetXMS not support /31
Post by: kronicklez on March 25, 2025, 10:09:34 AM
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:
Title: Re: NetXMS not support /31
Post by: Filipp Sudanov on March 25, 2025, 12:21:49 PM
You can try deleting 105.10.10.0/30 subnet object. Then run configuration poll on the device - subnet should be recreated again. 
Title: Re: NetXMS not support /31
Post by: kronicklez on March 26, 2025, 07:39:50 AM
Hi Filipp,

The alarm keep coming back after 1 hours. 

Appreciate if u can take look this issue.

Thanks