From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c305,65f0e9e4d54fc6ce,start X-Google-Attributes: gid10c305,public X-Google-Thread: 1164f8,c4aca975dd01d587 X-Google-Attributes: gid1164f8,public From: fdc@watsun.cc.columbia.edu (Frank da Cruz) Subject: Re: Kermit script or program to monitor serial line? Date: 1999/10/13 Message-ID: <7u21r1$98s$1@newsmaster.cc.columbia.edu>#1/1 X-Deja-AN: 536234892 References: <7u0a86$1idi$1@mars.mcs.net> X-Complaints-To: postmaster@columbia.edu X-Trace: newsmaster.cc.columbia.edu 939821729 9500 128.59.39.2 (13 Oct 1999 13:35:29 GMT) Organization: Columbia University NNTP-Posting-Date: 13 Oct 1999 13:35:29 GMT Newsgroups: comp.sys.dec,comp.protocols.kermit.misc In article <7u0a86$1idi$1@mars.mcs.net>, Richard Jordan 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 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