Victor,
I am trying what you outlined below for a filter. Here is what I
have:
(P.S. I called it Subnet)
sub main()
{
return AddrInSubnet($1->ipAddr,"10.9.6.0","255.255.255.0");
}
I changed the following things in the Server Configuration and
restarted the process:
DiscoverFilter - Subnet (I also tried Filter::Subnet)
RunNetworkDiscovery - "1" (Changed from zero)
Still, it doesn't seem to poll that subnet and add any devices. What
am I missing?
--------------------------------------
Tim Moore
614.387.8197
Network Operations Center
ODJFS
>>> victor_at_opticom.lv 3/23/2006 9:01 AM >>>
Hello!
To discover devices only in range 10.64.0.0 - 10.128.0.0, you script
should looks like:
sub main()
{
return AddrInRange($1->ipAddr, "10.64.0.0", "10.128.0.0");
}
To discover devices on subnet 10.4.0.0/16
sub main()
{
return AddrInSubnet($1->ipAddr, "10.4.0.0", "255.255.0.0");
}
And, to discover devices belonging to either given range or given
subnet:
sub main()
{
return AddrInRange($1->ipAddr, "10.64.0.0", "10.128.0.0") ||
AddrInSubnet($1->ipAddr, "10.4.0.0", "255.255.0.0");
}
Best regards,
Victor
> -----Original Message-----
> From: TIM MOORE [mailto:MOORET10_at_odjfs.state.oh.us]
> Sent: Thursday, March 23, 2006 2:48 PM
> To: NetXMS Users
> Subject: [netxms-users] Script Filter
>
>
>
> I was hoping that this new version would have an easier way
> to do the scripts for filtering. They appear the same to me.
> So I would like to ask how to write a script to only tell
> the server to discover devices on say...
>
> 10.4.0.0 /16
> or
> 10.90.60.0 / 24
>
> If I could just see how to do some like this, I could figure
> out the rest. Or is there an easy way to do a block?
>
> 10.64.0.0 - 10.128.0.0
>
> Thanks for any help.
>
>
> --------------------------------------
> Tim Moore
> 614.387.8197
> Network Operations Center
> ODJFS
>
> This e-mail message, including any attachments, is for the
> sole use of the intended recipient(s) and may contain
> private, confidential, and/or privileged information. Any
> unauthorized review, use, disclosure, or distribution is
> prohibited. If you are not the intended recipient, employee,
> or agent responsible for delivering this message, please
> contact the sender by reply e-mail and destroy all copies of
> the original e-mail message.
>
>
This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain private, confidential, and/or privileged information. Any unauthorized review, use, disclosure, or distribution is prohibited. If you are not the intended recipient, employee, or agent responsible for delivering this message, please contact the sender by reply e-mail and destroy all copies of the original e-mail message.
Received on Tue May 02 2006 - 14:51:48 EEST
This archive was generated by hypermail 2.2.0 : Tue May 02 2006 - 15:00:11 EEST