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. How to stop secondary interfaces showing up on L3 Map

How to stop secondary interfaces showing up on L3 Map

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 25.7k 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.
  • C
    C
    ChrisC
    wrote on last edited by
    #1

    I have a Cisco switch that has an interface (vlan) with two IP addresses attached.
    2 Objects show up in the device tree after auto discovery, and even though I have set the object with the secondary IP to unmanaged, and deleted it from the L3 map, it keeps popping back up and makes the diagram confusing.
    Of course just deleting the object itself means it will turn up again as managed after the next auto discovery.

    How can I stop this from happening while keeping the L3 map dynamic?
    Can I use an object filter and exclude the secondary IP somehow? To be honest, I would prefer if the object doesn't show up in the device tree at all, while keeping auto discovery enabled.

    Thanks,

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi,

      does NetXMS server has SNMP access to this Cisco device? Because normally it should read all configured addresses via SNMP and not attempt to create separate nodes for each known IP address.

      If for some reason device is not accessible via SNMP, you can block secondary address in discovery filter. You can set discovery filter to script, and use script like this:

      if ($node->ipAddr == "1.2.3.4")
         return false;
      return true;
      

      you can also use hook script Hook::AcceptNewNode for this, just add the following line to it:

      return $ipAddr != "1.2.3.4";
      

      (of course replace 1.2.3.4 with actual IP address).

      Best regards,
      Victor

      1 Reply Last reply
      0
      • C
        C
        ChrisC
        wrote on last edited by
        #3

        Hi Victor,
        Thank you for the reply.
        Yes, NetXMS is polling the device via SNMP without problems, so on both instances the device is listing all the interfaces, so it was surprising to me too!

        1 Reply Last reply
        0
        • C
          C
          ChrisC
          wrote on last edited by
          #4

          I have added the following (just in case I need to add more IPs) to Hook::AcceptNewNode and it is working.

          switch ($ipAddr)
          {
          	case "1.2.3.4":
          		return false;
          	default:
          		return true;
          }
          

          Thanks!

          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