How to automatically unmanage "unwanted" interfaces

Started by Marco Incalcaterra, February 27, 2016, 04:30:58 PM

Previous topic - Next topic

Marco Incalcaterra

Hi,

In most of Windows installation NetXMS discover the "isatap.*" interface, since I'm not interested in monitoring those interfaces I manually put them into unmanaged state but doing this for hundreds nodes is a boring task.

Has anyone a suggestion on how to automatically set to unmanage some nodes interfaces that meets specific requirements in the name?

Regards,
Marco

Dani@M3T

I use a Hook script to not create these interfaces

"Hook::CreateInterface":
//
// $node is current node object and $1 the interface
// return false blocks interface creation
// needs NetXMS >= V2.0

// no Teredo, isatap, Bluetooth interfaces
if ($1->name ~= "(?i).*Teredo.*|.*isatap.*|.*Bluetooth.*|sit0") {
   return false;
} else {
   return true;
}

Marco Incalcaterra