Bound / Unbound nodes

Started by tomaskir, August 06, 2014, 06:10:41 PM

Previous topic - Next topic

tomaskir

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!

Victor Kirhenshtein

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

tomaskir


tomaskir

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!

Alex Kirhenshtein


tomaskir