Shawls' blog,Program and Route

Thinking in Life!

博客园 首页 新随笔 联系 订阅 管理

其实是两个步骤:

一个是Netwatch确定Ping
另外一个是Script语句

顺便把find给解决了

Code如下:
/ tool netwatch
add host=192.168.100.100 timeout=1s interval=1m up-script=100Open \
    down-script=100Close comment="" disabled=no




/ system script
add name="100Open" source="/ queue simple
\nset \[find name=BTeMuleDou\] \
    disable=no
\nset \[find name=BTeMuleSim\] disable=yes" \
    policy=ftp,reboot,read,write,policy,test,winbox,password
add name="100Close" source="/ queue simple
\nset \[find name=BTeMuleSim\] \
    disable=no
\nset \[find name=BTeMuleDou\] disable=yes" \
    policy=ftp,reboot,read,write,policy,test,winbox,password
posted on 2005-12-18 17:49  Shawls  阅读(396)  评论(0编辑  收藏  举报