How to specify a netmask for node?

Started by janrovner, February 26, 2018, 03:27:09 PM

Previous topic - Next topic

janrovner

Hello,

I'm a total newbie (migrating from dude). I am trying to (batch) add new nodes, however when I create a new node to NetXMS (under "Infrastructure Services"), I'm always getting /24 subnet under "Entire Network".

I am adding it with everything disabled (NXCObjectCreationData.CF_DISABLE_ICMP | NXCObjectCreationData.CF_DISABLE_NXCP | NXCObjectCreationData.CF_DISABLE_SNMP | NXCObjectCreationData.CF_CREATE_UNMANAGED).

Could you please help me how to fix it? I am not interesting in autodiscovery in this movement, the goal is to migrate "by hand" about 2k of nodes.

Thank you.
Jan

tomaskir

An object in NetXMS always has to have at least one interface, where its Primary IP will reside.
If an object has all information sources disabled (nxagent and snmp), the object is created with a synthetic interface to hold its IP.

Next up, when an interface is created, NetXMS looks to place it in a subnet.
NetXMS will look for a matching subnet to place the IP in.

If a subnet doesn't yet exist, a new one will be created - specifically a /24 in this case, since the synthetic interface has a default /24 mask.

You can influence this by changing the server configuration parameter DefaultSubnetMaskIPv4 (or DefaultSubnetMaskIPv6).