Operating System - OpenVMS
1828841 Members
2838 Online
109985 Solutions
New Discussion

Re: Capturing OPCOM messages via a detached process

 
Brian Reiter
Valued Contributor

Capturing OPCOM messages via a detached process

Hi Folks,

We've got a requirement to capture some events from OPCOM in order to do fault analysis. Ideally this will be running as a detached process which will then inform an engineer when an interesting event has occurred. Note - the machines we use run unattended.

I've come across lots of clues involving virtual terminals but no examples on how to do it.

Hope you can help

cheers

Brian
7 REPLIES 7
Kris Clippeleyr
Honored Contributor

Re: Capturing OPCOM messages via a detached process

Brian,
A long time ago I've written something that could meet your requirements. Unfortunately, I cannot get to the sources right now.
However, I found in my archives 2 examples how one can use pseudo-terminals.
Please check them out.
I will dig into my other archives during the weekend, and hopefully get back to you with more suitabel stuff.
Regards,
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Kris Clippeleyr
Honored Contributor

Re: Capturing OPCOM messages via a detached process

Brian,
2nd example
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Karl Rohwedder
Honored Contributor

Re: Capturing OPCOM messages via a detached process

Perhaps the following article is of some help:
http://h18000.www1.hp.com/support/asktima/operating_systems/009396A8-91874560-1C03C5.html

regards Kalle
Robert Gezelter
Honored Contributor

Re: Capturing OPCOM messages via a detached process

Brian,

Capturing OPCOM messages is one of a series of conceptually related interfaces (e.g., DECnet events, Audit events). Most recently, I designed and implemented a mechanism to capture events as they were processed by the Audit Server.

The technique which allows OPCOM messages to be captured using a terminal (or pseudo terminal) and the associated notification mailbox is documented in the Terminal Driver section of the OpenVMS I/O User's Guide (in the standard documentation set which is also available through the OpenVMS www site).

There may be another alternative, but I am off-site at the moment, without access to my hardcopy library.

This method is used by programs (e.g., some screen based utilities) to intercept the breakthrough write used when a terminal is enabled for messages, and place the message so that it does not interfere with the formatting of the screen.

I hope that the above is helpful.

- Bob Gezelter, http://www.rlgs.com
Joseph Huber_1
Honored Contributor

Re: Capturing OPCOM messages via a detached process

In addition to the asktima Fortran example, there is a C example posted once upon a time to vmsnet.sysmgt:
http://wwwvms.mppmu.mpg.de/vmssig/src/c/OPCOM-TO-PTD.C

It just prints the messages; modify it to process messages as You want.
http://www.mpp.mpg.de/~huber
Kris Clippeleyr
Honored Contributor

Re: Capturing OPCOM messages via a detached process

Brian,
Although I've mentioned that I have written something years ago that might have suited your needs, I searched in my archives over the weekend, and regrettably I was unable to find the sources.
So sorry,
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Robert Atkinson
Respected Contributor

Re: Capturing OPCOM messages via a detached process

Brian, my advice would be to take the hard work out of it and check out IAM:Consoles (used to be RoboCentral) at www.itheon.co.uk.

Rob.