NeDi Community

NeDi General => News => Topic started by: rickli on October 24, 2017, 12:01:31 PM

Title: Anyone using descfilter?
Post by: rickli on October 24, 2017, 12:01:31 PM
There's a descfilter option in nedi.conf, which let's you avoid discovering HP Laserprinters for example. Usually no one using this option, but I'm wondering if anyone relies on it?

I'm asking as I'm optimizing the discovery for 1.8 and may have to replace it with a name and sysobjidfilter instead...
Title: Re: Anyone using descfilter?
Post by: ntmark on November 08, 2017, 08:24:42 PM
Is this the same as 'ignoredesc' because I can't find any 'descfilter' option in nedi.conf.
If there is another way to filter out these devices i'll change to that.

Code: [Select]
# Do not discover devices containing these strings in the description (e.g. Printers etc.)
ignoredesc      LaserJet|JETDIRECT|HP-UX|Windows|NTserver|snom|HiveAP|snom300-SIP

Mark.
Title: Re: Anyone using descfilter?
Post by: rickli on November 29, 2017, 11:54:18 AM
Oh yes it is :) It's been changed to ignoredesc to fit in with the rest. But I guess it's not that popular anyway...
Title: Re: Anyone using descfilter?
Post by: mduling on January 24, 2018, 04:22:26 AM
Hi Remo. It would be helpful if the comments for ignoredesc were more specific. For example, what desc is it looking for? lldp desc? I don't think CDP has a description field. Many of the lldp description fields devices report are generic such as 'Linux', but sometimes they're more specific.

For nosnmpdev, since I'm using that apparently "discovery protocol description" allows for using what CDP reports as 'Device ID', yet it would seem to also support CDP 'platform ID' since my regexp for that has one of each in it: AIR-([CL]|A)P|^S[EI]P

Also, does a match for nosnmpdev "not discover" as with ignoredesc? Not trying to get metaphysical here but since nedi is so uber flexible, sometimes I'm not sure what 'not discover' actually means. Does it mean not put it in the DB or put it in the DB but do nothing else with it? For nosnmpdev I know it means the latter. For ignoredesc I'm not sure.
Title: Re: Anyone using descfilter?
Post by: rickli on January 30, 2018, 06:47:05 PM
Tx for the feedback. This option only applies to the description read via SNMP and won't affect CDP, LLDP or nosnmpdev at all.

It only made sense in rare cases, that's why I'd like to replace it. It seems nobody is using it anyway :-)