Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Invalid network mask /24 on interface "unknown", should be /26

Invalid network mask /24 on interface "unknown", should be /26

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 13.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    T
    technikcst
    wrote on last edited by
    #1

    Hi,

    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.

    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?

    Regards,
    Christoph

    1 Reply Last reply
    0
    • T
      T
      Toepfe
      wrote on last edited by
      #2

      Hi Christoph,

      I have a similar case and stopped this warnings at "Propoerties - Polling" of the interface with activating "Exclude this interface from network topology".

      Bye
      Heimo

      1 Reply Last reply
      0
      • T
        T
        technikcst
        wrote on last edited by
        #3

        Hi Heimo,

        thank you for the tip. I have changed all interfaces now and it looks good at the moment.

        Here is the script I used for changing the interfaces:

        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!'
        
        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups