<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Invalid network mask /24 on interface "unknown", should be /26]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am getting the message Invalid network mask /24 on interface "unknown", should be /26. The monitored node does not use SNMP or Agent. (so netxms does not know anything about interfaces). The ip of the node should be x.x.x.x/26 but I cannot change the primary hostname/ip of the node to include the subnet mask.</p>
<p dir="auto">This is a wireless client. The Access Point uses SNMP - so NetXMS knows that the IP of the client should have a /26 netmask. Is there a way to disable the check for "unknown" interfaces?</p>
<p dir="auto">Regards,<br />
Christoph</p>
]]></description><link>https://forum.netxms.org/topic/3868/invalid-network-mask-24-on-interface-unknown-should-be-26</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:31:12 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3868.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Jul 2015 15:40:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Invalid network mask /24 on interface "unknown", should be /26 on Thu, 09 Jul 2015 08:33:51 GMT]]></title><description><![CDATA[<p dir="auto">Hi Heimo,</p>
<p dir="auto">thank you for the tip. I have changed all interfaces now and it looks good at the moment.</p>
<p dir="auto">Here is the script I used for changing the interfaces:</p>
<pre><code>from org.netxms.client.objects import GenericObject, Node, Interface, AbstractObject

# START CONFIG
###############################################################################

rootID = 108 #objects.GenericObject.SERVICEROOT # Infrastructure Services Node

##############################################################################
# END CONFIG


rootNode = s.findObjectById(rootID) # the root node object

print 'Changing items from node %s' % ( rootNode.getObjectName() )

def getSubItems(parent, depth):
    for node in parent.getChildsAsArray():
        nodeClass = node.getObjectClass()
        nodeName = node.getObjectName()

        if nodeClass == AbstractObject.OBJECT_CONTAINER:
            #print 'Checking subnode...'
            getSubItems(node, depth + 1)
        else:
            for interface in node.getAllChilds(GenericObject.OBJECT_INTERFACE): # 3 == interface
                name = interface.getObjectName()
                if name.startswith('unknown'):
                    data = NXCObjectModificationData(interface.getObjectId())
                    #data.setExpectedState(2) # 2 := ignore interface state
                    newFlags = interface.getFlags() | Interface.IF_EXCLUDE_FROM_TOPOLOGY # set exclude flag
                    data.setObjectFlags(newFlags)
                    session.modifyObject(data)
                    print 'Changed interface of %s' % (nodeName)
                    #session.applyTemplate(4754, node.getObjectId()) # add node to new template
                    #print 'Added node to new polling template'

# main
getSubItems(rootNode, 1)

print 'Done changing interfaces!'
</code></pre>
]]></description><link>https://forum.netxms.org/post/17285</link><guid isPermaLink="true">https://forum.netxms.org/post/17285</guid><dc:creator><![CDATA[technikcst]]></dc:creator><pubDate>Thu, 09 Jul 2015 08:33:51 GMT</pubDate></item><item><title><![CDATA[Reply to Invalid network mask /24 on interface "unknown", should be /26 on Wed, 08 Jul 2015 06:02:40 GMT]]></title><description><![CDATA[<p dir="auto">Hi Christoph,</p>
<p dir="auto">I have a similar case and stopped this warnings at "Propoerties - Polling" of the interface with activating "Exclude this interface from network topology".</p>
<p dir="auto">Bye<br />
Heimo</p>
]]></description><link>https://forum.netxms.org/post/17257</link><guid isPermaLink="true">https://forum.netxms.org/post/17257</guid><dc:creator><![CDATA[Toepfe]]></dc:creator><pubDate>Wed, 08 Jul 2015 06:02:40 GMT</pubDate></item></channel></rss>