lulinjan 发表于 2010-10-25 19:08:15

求一个adsl掉线自动报警

同上求同上求同上求同上求同上求同上求同上求同上求同上求同上求同上求同上求同上求

htqt 发表于 2010-10-25 20:35:37

/ tool netwatch add host=221.7.164.25 timeout=80ms interval=5s up-script=music-u1 \
    down-script=music-d1 comment="sc1" disabled=no

/sys sch add name="smusic-d1" on-event=music-d1 start-date=jan/01/1970 \
    start-time=00:00:05 interval=50s comment="" disabled=no

/ip scr add name="music-d1" source=":if \(\[/tool netwatch find comment=sc1 \
    status=down\]!=\"\"\) do={
\n
\n:beep freq=2000 len=3000ms \n:log error \"〖线路1_故障〗\"
\n}" \
    policy=ftp,reboot,read,write,policy,test,winbox,password

zooyo 发表于 2010-10-26 10:22:40

搜索我的帖子。
页: [1]
查看完整版本: 求一个adsl掉线自动报警