I let it run all night (Proccess Hacker showed no I/O and a full core of cpu usage) and it began working OK.
Thanks anyway!!
Thanks anyway!!
We really need your input in this questionnaire
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
// Find "Entire Network" object and start enumeration from it
EnumerateNodes(FindObject(1));
// This function walks object tree recursively starting from given root
sub EnumerateNodes(rootObject)
{
// Walk all child objects
foreach(o : GetObjectChildren(rootObject))
{
if (classof(o) == "Node")
{
interfaces = GetNodeInterfaces(o);
foreach(i : interfaces)
{
//trace(1, "Interface: name='" . i->name . "' id=" . i->id);
if (i->name=="2")
{
ManageObject(FindObject(i->id));
println(i->ipAddr);
}
}
}
else if (classof(o) == "NetObj")
{
// For all other objects, go down the tree
// There can be additional checks for object class, like
// if (o->type == 5)
EnumerateNodes(o);
}
}
}