Ping
David Vaughan
dvk at dvkconsult.com.au
Wed Mar 19 12:39:01 EST 2003
On Thursday, Mar 20, 2003, at 04:01 Australia/Sydney, Ben Rubinstein
<benr_mc at cogapp.com> wrote:
>
Ben
I saw that you were discussing with Dar using Open in Rev, as your
spare machines are OS 9, but if you have an OS X machine a low overhead
way to do this is to write a very short shell script in OS X to ping,
append the output to a log file and sleep for half to one minute. Run
that in background at low priority and it will be unnoticeable in any
circumstance. A cron job or the next sentence's Rev app can keep the
log to a day's data. On a spare OS 9 machine, write your Rev app which
parses the host's log, analyses and presents events. I personally would
find this simpler, given your resources, compared with fiddling with
open, close and timeouts, as everything is short to write and will work
immediately.
regards
David
>
> Actually I don't even want to ping as such, just establish whether a
> network
> device is up and running. We're having problems with a router that
> keeps
> rebooting; and as a first step would like to monitor it so that we can
> track
> how often and when this is happening: in order to establish how
> serious the
> problem is, so we can see if there is a pattern that might give us a
> clue as
> to the source of the problem, and to give us a baseline so that if
> we're
> reduced to trial and error, we can see whether we're making matters
> better
> or worse.
>
> So, two alternative questions:
> - how could I (can I?) code a 'ping' function in Rev?
> - what is the lowest impact method that I could use, in
> Revolution, to
> probe a network device?
>
> Ideally I'd set up a stack on a spare machine to be probing every 60
> seconds
> or so (it takes just under two minutes for the router to reboot, and I
> don't
> know at what point in the process it becomes visible on the network,
> so any
> longer than this might actually miss a rebooting incident); so I don't
> want
> to use massive resources to do it.
>
> Any help, suggestions, code fragments etc gratefully received,
>
> TIA,
>
> Ben Rubinstein | Email: benr_mc at cogapp.com
> Cognitive Applications Ltd | Phone: +44 (0)1273-821600
> http://www.cogapp.com | Fax : +44 (0)1273-728866
>
>
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list