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. Bound / Unbound nodes

Bound / Unbound nodes

Scheduled Pinned Locked Moved Support
6 Posts 3 Posters 14.2k 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
    tomaskir
    wrote on last edited by
    #1

    Hey guys,

    Is there an easy way to see a list of unbound nodes? (nodes being in "Entire Network", but not in "Infrastrucure services")?

    I did a network discovery, which added all my nodes, but now I need to bind them to "Infrastrucure services".
    I want to make sure I dont miss a node. Also, if I keep discovery running, and a node is added, I want an easy way to see which nodes are unbound.

    Is this possible?

    Thanks!

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

      Hi!

      This can be done using scripts. For example, the following script will return true if node has only subnets a parents:

      result = true;
      parents = GetNodeParents($node);
      foreach(p : parents)
      {
         if (p->type != 1)   // Type 1 = subnet
         {
            result = false;
            break;
         }
      }
      

      You can create separate container with autobind script which will bind nodes not located in any container. For example, if you call this container "NewNodes", autobind script could be like this:

      parents = GetNodeParents($node);
      foreach(p : parents)
      {
         if ((p->type != 1) && (p->name != "NewNodes"))   // Type 1 = subnet, also ignore "NewNodes" container itself
         {
            return false;
         }
      }
      return true;
      

      Best regards,
      Victor

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

        Awesome, thank you very much 🙂

        1 Reply Last reply
        0
        • T
          T
          tomaskir
          wrote on last edited by
          #4

          Is there a list of numeric values to type names somewhere?

          I wanted to modify the script a bit, but I cant find this list, and dont know what numeric value the "Template" type is.

          Thanks!

          1 Reply Last reply
          0
          • A
            A
            Alex Kirhenshtein
            wrote on last edited by
            #5

            Check nxclapi.h for complete list: http://git.netxms.org/public/netxms.git/blob/HEAD:/include/nxclapi.h?js=1#l132

            1 Reply Last reply
            0
            • T
              T
              tomaskir
              wrote on last edited by
              #6

              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