Reply
Highlighted
Accepted Solution

Perl API - How would I "OR" this statement

Authority
Posts: 29
4170     0

This doesn't appear to work:

 

    # find by ip address

     op_DeviceIPDotted     => 'like', val_c_DeviceIPDotted  => '10.101.%' || '10.201.%',

 

Thanks!

Re: Perl API - How would I "OR" this statement

Adviser
Posts: 357
4171     0
I believe you can use ”rlike” which does a regular expression search, and your value_c_ would be ”10\.101.*|10\.201.*”

John

Re: Perl API - How would I "OR" this statement

Authority
Posts: 29
4171     0

# and IP's match 10.101.x.x or 10.102.x.x
op_DeviceIPDotted => 'rlike', val_c_DeviceIPDotted => "10\.101.*|10\.102.*",

 

That did work quite well.  Thanks.

Showing results for 
Search instead for 
Do you mean 

Recommended for You