Bound / Unbound nodes
-
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!
-
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 -
-
-
Check nxclapi.h for complete list: http://git.netxms.org/public/netxms.git/blob/HEAD:/include/nxclapi.h?js=1#l132
-
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