NetXMS Support Forum

English Support => General Support => Topic started by: Marco Incalcaterra on February 27, 2016, 04:30:58 PM

Title: How to automatically unmanage "unwanted" interfaces
Post by: Marco Incalcaterra on February 27, 2016, 04:30:58 PM
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
Title: Re: How to automatically unmanage "unwanted" interfaces
Post by: Dani@M3T on February 27, 2016, 04:59:20 PM
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;
}
Title: Re: How to automatically unmanage "unwanted" interfaces
Post by: Marco Incalcaterra on February 27, 2016, 05:38:26 PM
It works fine! :)

Thank you very much!

Marco