Community discussions

MikroTik App
 
gianmaxfactor
just joined
Topic Author
Posts: 14
Joined: Wed Nov 15, 2017 6:25 pm

Compare Name with FirstDnsName

Sat Sep 19, 2020 3:04 pm

Hello guys,

why doesn't this probe work in your mind?

Name: check_name
Type: Function

Error: if(string_substring(device_property("Name"),0,10)=string_substring(device_property("FirstDnsName"),0,10),"",device_property("FirstDnsName"))

Thanks
Gian
 
gianmaxfactor
just joined
Topic Author
Posts: 14
Joined: Wed Nov 15, 2017 6:25 pm

Re: Compare Name with FirstDnsName

Sun Sep 20, 2020 8:22 am

Hello Gian,

give it a try:

Name: check_name
Type: Function
Agent: default
Available: not(ping(device_property("FirstAddress")))
Error: if(string_find(device_property("Name"),device_property("FirstDnsName"))=0,"",device_property("FirstDnsName"))
Value: string_find(device_property("Name"),device_property("FirstDnsName")
Unit: #

Let me know!
Max

Who is online

Users browsing this forum: No registered users and 22 guests