Exclude some devices in autodiscover

Started by Tom, May 27, 2008, 12:45:29 PM

Previous topic - Next topic

Tom

Hi,

is there a way to exclude some clients in autodiscover process? I scan the networks for snmp devices. unfortunately, some HP Printers react on my snmp community and are added to the devicelist.

Its only one subnet - I have 10 switches there to manage, and 10 printers that I dont want to include in the scan.

Is there a way to exclude the whole subnet from configuration polls? There are nor changes in this network normally.

Thanks,

greetings
Tom

Victor Kirhenshtein

Hi!

It is possible, but only with custom filter script. You should create a new script in script library and then enter it's name in network discovery properties. Script receives object with new node information as first parameter and should return non-zero if node should be added to database and 0 otherwise. For example, script that will allow to discover only SNMP devices, but not in subnet 10.0.0.0/24, can looks like following:


sub main()
{
   return $1->isSNMP && (!AddrInSubnet($1->ipAddr, "10.0.0.0", "255.255.255.0"));
}


Full list of node object attributes (mostly self-explaining):

ipAddr
netMask
subnet
isAgent
isSNMP
isBridge
isRouter
isCDP
isSONMP
isLLDP
snmpVersion
snmpOID
agentVersion
platformName


Btw, you can filter out printers by checking SNMP OID in filter script.

Best regards,
Victor

Tom

Thanks for the help, I will do a test with the script