halo all, anyone can give me a clue, i want script that can sum the duration of downtime connection based on ping. the sum of downtime can be place on a file such downupconnection.log or something.
for example the output log is like this…
mon 17 August 2007 22:30PM down - mon 17 August 2007 22:37PM up, duration down 7 minutes
mon 17 August 2007 23:37PM up - mon 18 August 2007 00:50 down, duration up 73 minutes
also vice versa…
Is netwatch capable doing this? i’m sorry for my bad english. thanks before,
OK, my idea is use Netwatch for ping a host and when this host is down the alarm script in Netwatch is turned on. I need log in a file the date, hour and ip of the host:
My script:
:for c from=1 to=10 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
}