Re: how to turn off OPCOM messages on a console terminal





hoffman@xdelta () wrote on 06/22/2006 01:49:02 PM:

In article <OF2D1DC406.EB9ED9AF-ON85257195.005725CE-85257195.
0058BA49@xxxxxxxxx>, norm.raphael@xxxxxxxxx writes:
|> Can I get "REPLY/TO" messages to go to the operator.log file only, but
not
|> hang.


The REQUEST/REPLY (or the lower-level equivalent that an application
program can use, a call via $sndopr) will continue to be broadcast
because there is an enabled operator terminal somewhere in the cluster.
If there is no operator terminal, the REQUEST/REPLY (or the $sndopr call
analog) will terminate.

If you have a specific operator target via REQUEST/REPLY/TO or via
the target operator bitmask within $sndopr, you can ensure that no
matching operators enabled, while also ensuring the operator log has
the operator class enabled for logging. This via SYLOGICALS.* OPC$*
logical names.

If you just want to log a message, then REQUEST (or an equivalent
$sndopr call) will work fine, and will display the message at the
target operator(s).

If you are seeing a hang within OPCOM (other than the expected
synchornization involving REQUEST/REPLY, obviously), then there
is something else going on.

If the application hangs, then there is probably something wrong
within the application -- a resource leak or other run-time error.
I can think of a potential brute-force work-around (or two) for
this sort of thing, but I'd tend to look to the application
maintainer(s) first.

If you are seeing new request ids, then there may well be a leak
within the $sndopr code involved in the application. The expected
and normal behaviour is to repeat the operator broadcasts at a
periodic interval until the request is serviced. If you are seeing
new request identifiers issued, this may well be the source of the
eventual application stall.1

Again, the best approach is to engage whomever is maintaining the
application -- or to ensure there are either no operators, or that
the operators service the request before the application tips over.
Obviously.

This has always vexed me. This app AFAIK does not listen for or
expect a response to the message; it's more like an "I'm still here"
sanity check. (I always thought it was part of some vestigial or
debugging code that got left in the final product - ISTM that REQUEST
or a call to $SNDOPR without expecting a reply would have been correct.)
It does get automagically cancelled after 5 minutes, when a new-numbered
request is issued. The docs say a terminal must be enabled somewhere on
the system to process this message. No operator action (service of the
request?) is needed. I no terminal is enabled for OPERxx - assigned
at startup of the app - eventually it will tip over, as you say.
There does not appear to be a leak, but the "maintainer" has no
intention of touching the code, which has been frozen for some time,
as the workaround is documented. If I can use logicals to get
messages to, say, OPER10 to log to operator.log without having a
physical terminal set "REPLY/ENABLE=(OPER10)" that would do it.
Alternately, if there is a way to create a "virtual terminal" and
enable it to get-and-ignore these messages and I could start it at
boot and just leave it, that would be okay, too.




|> Here's an excerpt:
|> [start]
|> %%%%%%%%%%% OPCOM 11-JUN-2006 09:18:22.46 %%%%%%%%%%% (from node
|> NODE1 at
|> 11-JUN-2006 09:18:22.46)
|> Request 3798, from user USERx on NODE1
|> CSTI006O APPLID, Reply with an APPLID command.
|>
|> ***************
|>
|> %%%%%%%%%%% OPCOM 11-JUN-2006 09:23:47.91 %%%%%%%%%%% (from node
|> NODEA at
|> 11-JUN-2006 09:23:47.92)
|> Request 3798 was canceled
|> [end]
|>
|> The app puts out this every 5 minutes and apparently the new one
cancels
|> the prior one, but if no terminal
|> is REPLY/ENABLED the application eventually fills some buffer (or
|> something) and hangs.
|>

.



Relevant Pages

  • Re: how to turn off OPCOM messages on a console terminal
    ... a call via $sndopr) will continue to be broadcast ... If there is no operator terminal, the REQUEST/REPLY (or the $sndopr call ... If you just want to log a message, then REQUEST (or an equivalent ... If you are seeing a hang within OPCOM (other than the expected ...
    (comp.os.vms)
  • Re: how to turn off OPCOM messages on a console terminal
    ... |> debugging code that got left in the final product - ISTM that REQUEST ... I'd probably NO-OP the $sndopr call, then, via a patch. ... Using DUMP and some digging, and patch or a related too, I'd make the ...
    (comp.os.vms)
  • troubleshooting help
    ... I am trying to figure out why my mpd server won't ... PACKET: REGISTRATION; REQUEST; BROADCAST ... PACKET: QUERY; REQUEST; BROADCAST ...
    (freebsd-questions)
  • Re: Runtime Error
    ... The application has requested the runtime to terminate it in an unusual way. ... disabling/unchecking Javathe runtime error ceased in IE6. ... > this program has request the runtime library to terminate it in an unusual ... > then when I clicked the ok button, all internet explorer windows were ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: ShareFS Windows client?
    ... be a useful project to resurrect. ... I forget the ports but it uses basically two - one to broadcast on to ... Any interaction had an identifier and a protocol ... Sent request for file. ...
    (comp.sys.acorn.apps)