RE: Script Filter

From: Victor Kirhenshtein <victor_at_DOMAIN_REMOVED>
Date: Thu, 23 Mar 2006 16:01:09 +0200

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.
>
>
Received on Thu Mar 23 2006 - 16:01:09 EET

This archive was generated by hypermail 2.2.0 : Thu Mar 23 2006 - 16:06:14 EET