NetXMS Support Forum

English Support => Feature Requests => Topic started by: scuq on February 08, 2013, 04:40:26 PM

Title: Interface expected state
Post by: scuq on February 08, 2013, 04:40:26 PM
is it possible to set the default "interface expected state" for new devices?

it would be perfect so set it via a filtering script for example
if the ifAlias, ifName or a other pollable interface property contains a certain string -> set it to UP, DOWN or IGNORE

but if I could change the global default to IGORE this would also be fine, i'll try to recreate our hp-nnm monitoring which currently is monitoring
1500 access-switches, it's really annoying to set the expected interface state to ignore for all access-devices. i've tried it with a sql-query on the
database, it worked but i think there must be a more sophisticated way to do this.

thx
Title: Re: Interface expected state
Post by: Victor Kirhenshtein on February 20, 2013, 08:49:46 PM
I have added new NXSL finction SetInterfaceExpectedState: http://wiki.netxms.org/wiki/NXSL:SetInterfaceExpectedState (http://wiki.netxms.org/wiki/NXSL:SetInterfaceExpectedState). You can use it in configuration poll hook to change interface expected state automatically.