Skip to content

The Banyan Monitor

When Python Banyan is installed, an executable program called monitor is automatically installed.

The monitor is a special Banyan component that prints all protocol messages published to the Backplane. It displays the message topic as well as the payload for each message. It is used mainly as a debugging aid to monitor and debug messaging traffic.

To see the monitor in action, start the Backplane and server as described in Section 1. Before starting the client, open a terminal or command window and type:

monitor

The monitor displays a familiar Banyan banner.

Now start the client. The monitor will display all of the protocol messages published by both the client and the server.

The monitor displays each protocol message. The topic is displayed, followed by the payload. The topic is displayed as a string and the payload as a Python dictionary.

Note that CPU utilization is likely to increase when the monitor is active, so you may wish to dismiss the monitor once an application is debugged.

The monitor has several command-line options available:

The monitor may be located on any computer and be connected to any backplane by using the -b, -s, and -p options.

If you wish to display numpy data payloads, use the -m option and set it to True.



Copyright (C) 2017-2020 Alan Yorinks All Rights Reserved