Skip to content

query error:  #1

@gaborsinko

Description

@gaborsinko
/system script
add dont-require-permissions=no name=script1 owner=admin policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/import flash/MTM/Facts.rsc;\r\
    \n:global MtmFacts;\r\
    \n:local strTool [(\$MtmFacts->\"execute\") nsStr=\"getTools()->getStrings()\"];\r\
    \n\r\
    \n/ip arp print where \$dynamic=true and !complete and [(\$strTool->\"toLower\") \$interface] =[(\$strTool->\"toLower\") \"PublicDMZ\"]; #perfect\r\
    \n/ip dhcp-server lease print where host-name ~\"NurseSmurf.server\"; #perfect\r\
    \n/ip dhcp-server lease print where [(\$strTool->\"toLower\") host-name] ~[(\$strTool->\"toLower\") \"NurseSmurf.server\"]; #is null\r\
    \n"

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions