- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Broadcast or $BRDCST
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2010 01:53 AM
03-19-2010 01:53 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2010 04:06 AM
03-19-2010 04:06 AM
Re: Broadcast or $BRDCST
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2010 04:25 AM
03-19-2010 04:25 AM
SolutionBroadcast to Your process/terminal can be catched by a program establishing an attention-mailbox-AST on the terminal (sys$input) of the process.
An example of how to do it is in
http://www.mpp.mpg.de/~huber/vmssig/src/MAR/GRAB_BROADCAST_MESSAGES.MAR
You can take this program, and enhance it to log the trapped messages to a file.
Or take another example written in C, which traps broadcasts and displays them in graphic display window:
http://www.mpp.mpg.de/~huber/vmssig/src/C/BTRAP.C
On the other hand "REPLY" messages ? OPCOM messages are logged in the OPERATOR log file if enabled by REPLY/LOG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2010 12:58 PM
03-21-2010 12:58 PM
Re: Broadcast or $BRDCST
In theory you could put a software hook in the system service dispatch vector for the $BRDCST service and log everything that went past for all users and all destinations. A non-trivial, privileged, and fairly dangerous exercise. If you need to ask this question, then it's probably not something you should attempt straight away.
Remember that $BRDCST (REPLY) messages can be sent FROM anywhere, and TO a variety of destinations. Think about which messages you're interested in, and if you want to catch them on the sending side or the receiving side. There are numerous tricky cases. For example, what if someone sends a REPLY/USER=someone but the user isn't logged in? The message never gets delivered anywhere. What if someone sends a message to a specific terminal with no one logged in? The message is delivered, but there's no attached process to catch it with something like Joseph's example program.
If you have control over the sending of the messages you're interested in, I'd be taking the easy solution of logging at the source. Abstract the operation, changing it in your sending application from "$BRDCST" to "SendMessage". Implement SendMessage as:
LogMessage(msg)
$BRDCST(msg)
(where LogMessage writes the message to your log file).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2010 12:38 AM
04-07-2010 12:38 AM