Fri Feb 16, 2007 10:38 am
Yes - fine
If i have not internet, script make beep in NetWAtch - Down -
/ tool netwatch
add host=213.xxx.xxx.x timeout=1s interval=1m up-script="" down-script=":log info \"GATEWAY \
\n :set i 15 \=50 step=1 \\
\n :beep length=400ms frequency=\$x; \
\n \ :set x (\$x +35)
\n :beep length=0 \) && (\$i >0))
\n}" comment="" disabled=no
[admin@RouTer] tool netwatch>
and script is
:log info "GATEWAY Problem No INTERNET"
:for c from=1 to=50 step=1 \
do={ \
:set i 15
:set x 1900
:do {\
:beep length=400ms frequency=$x; :delay 25ms
:set i ($i - 1);
:set x ($x +35)
} \
while (($i <16) && ($i >0))
:beep length=0 frequency=0
}
But how to make this script to beep until ISP recover my connection
and if ISP recover connection , script mast stop beep