自己模仿写了个脚本,运行了,却没有起作用,高手可以帮我看一下吗?
:global new-ip [/ip ARP List get [/ip ARP List find MAC Address=84:87:5B:98:11:58] IP Address]
:global old-ip [/Queue List get [/Queue List find comment="xy"] Target Address]
:if ($new-ip != $old-ip) do={
:log info [/Queue List set [/Queue List find comment="xy"] Target Address=$new-ip]
:log info "〖修改完毕〗"
}