Community discussions

MikroTik App
 
sinkog
just joined
Topic Author
Posts: 2
Joined: Fri Jun 12, 2020 4:16 pm

toLower problem

Tue Jan 25, 2022 1:57 pm

I used: https://github.com/merlinthemagic/MTM-R ... -Scripting
/import flash/MTM/Facts.rsc;
:global MtmFacts;
:local strTool [($MtmFacts->"execute") nsStr="getTools()->getStrings()"];

/ip arp print where $dynamic=true and !complete and [($strTool->"toLower") $interface] =[($strTool->"toLower") "PublicDMZ"]; #perfect
/ip dhcp-server lease print where host-name ~"NurseSmurf.server"; #perfect
/ip dhcp-server lease print where [($strTool->"toLower") host-name] ~[($strTool->"toLower") "NurseSmurf.server"]; #is null

why not return the last query result ...
I guess it's not the Tool's fault but I can't figure out what the problem may be.

Who is online

Users browsing this forum: eworm and 8 guests