* Re: Kermit script or program to monitor serial line?
[not found] <7u0a86$1idi$1@mars.mcs.net>
@ 1999-10-13 4:00 ` Frank da Cruz
1999-10-13 4:00 ` Richard Jordan
0 siblings, 1 reply; 3+ messages in thread
From: Frank da Cruz @ 1999-10-13 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Kermit script or program to monitor serial line?
1999-10-13 4:00 ` Kermit script or program to monitor serial line? Frank da Cruz
@ 1999-10-13 4:00 ` Richard Jordan
0 siblings, 0 replies; 3+ messages in thread
From: Richard Jordan @ 1999-10-13 4:00 UTC (permalink / raw)
> 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; ...
> .
> :
> : 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...
> .
> 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
> .
>
> For lots of C-Kermit script examples, see:
>
> http://www.columbia.edu/kermit/ckscripts.html
>
> - Frank
Frank,
I had looked at the Columbia script site and didn't see anything
directly applicable. I will check it again. I do have the more recent
C_Kermit book (purchased last December, I think its for V6) and, while it
has fine examples, I'm time limited enough right now to hope to locate a
piece of already-done code to base things on.
I appreciate your taking the time to respond! I will be looking at
Kermit as the most likely solution to this problem...
Rich Jordan
rjordan@mcs.net
^ permalink raw reply [flat|nested] 3+ messages in thread
* Kermit script or program to monitor serial line?
@ 1999-10-12 4:00 Richard Jordan
0 siblings, 0 replies; 3+ messages in thread
From: Richard Jordan @ 1999-10-12 4:00 UTC (permalink / raw)
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 or if I'd be better off
dealing with UCX programming from BASIC (we do not have C... or any
other language, available). Thanks in advance!
Rich Jordan
rjordan@mcs.net
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-10-13 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <7u0a86$1idi$1@mars.mcs.net>
1999-10-13 4:00 ` Kermit script or program to monitor serial line? Frank da Cruz
1999-10-13 4:00 ` Richard Jordan
1999-10-12 4:00 Richard Jordan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox