Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Subject: Re: Kermit script or program to monitor serial line?
Date: 1999/10/13	[thread overview]
Message-ID: <7u21r1$98s$1@newsmaster.cc.columbia.edu> (raw)
In-Reply-To: 7u0a86$1idi$1@mars.mcs.net

In article <7u0a86$1idi$1@mars.mcs.net>,
Richard Jordan <rjordan@Mars.mcs.net> wrote:
: We're using a Routeabout Access EW as a central router in a frame relay
: configuration; there are 9 remote sites coming in, each on its own PVC.
: Some of the links have been problematic (its the telco having glitches
: but sometimes the routabouts just will not recover without being re-
: started).  The central site has an Alphacluster running OpenVMS V7.1
: and UCX V4.1 (latest ECO, and yes I wish I could upgrade them too).
: 
: After having some batch jobs sitting on the alphas regularly pinging the
: remote routers and notifying us on a ping failure, the fact that it'd be
: much less load on the system/links/etc if we could just leave a process
: telneted to the central router listening to the logging console (or 
: perhaps using a direct serial connection to the router console port
: doing the same thing) and sending notifications when the central router
: sees a topology change or other error (by error name/number).  We would
: determine which messages to enable to provide just what we needed and
: have the program parse all incoming messages.  Most would just be logged
: (no info messages, just warning and worse) and some would trigger an
: email/page/whatever.
: 
: I'm hoping someone has sample code (maybe in BASIC?) for this type of
: application, but I'd appreciate opinions on whether something like
: this can be handled using Kermit scripting...
:
Yes.

: ... or if I'd be better off
: dealing with UCX programming from BASIC (we do not have C... or any
: other language, available).
:
No.  Kermit has tens of thousands of lines of code already written to do
what you want.  Why duplicate all that?

I'd recommend you start with C-Kermit 7.0:

  http://www.columbia.edu/kermit/ck70.html

which is in the final stages of Beta testing, and is far advanced over the
previous version in terms of scripting capabilties, and also has numerous
VMS-specific improvements.  Get a copy of the manual:

  http://www.columbia.edu/kermit/ck60manual.html

to learn the script language, and also read the 7.0 release notes to learn
about the new features:

  ftp://kermit.columbia.edu/kermit/test/text/ckermit2.txt

In brief outline, your application would:

  set host <hostname-of-router>
  if fail exit 1 Can't reach router.
  while true {
      (wait for a line to come in)
      (parse the line)
      (if it's a significant event, handle it)
      (maybe make some kind of log entry)
  }

For lots of C-Kermit script examples, see:

  http://www.columbia.edu/kermit/ckscripts.html

- Frank



       reply	other threads:[~1999-10-13  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <7u0a86$1idi$1@mars.mcs.net>
1999-10-13  4:00 ` Frank da Cruz [this message]
1999-10-13  4:00   ` Kermit script or program to monitor serial line? Richard Jordan
1999-10-12  4:00 Richard Jordan
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox