Updating the Really Small Message Broker configuration file

You can configure the host and port for Really Small Message Broker.

Before you begin

Before updating the Really Small Message Broker configuration file (precision.broker.cfg), you must stop all ncp processes.

About this task

To configure the host and port for Really Small Message Broker, complete the following steps on each server where Network Manager core components are installed.

Procedure

  1. Ensure that all ncp processes have been stopped.
  2. Delete the following file:
     $NCHOME/etc/precision/broker_1883.cfg
    Important: Broker_1883.cfg is automatically generated from precision.broker.cfg when the Really Small Message Broker starts. If this file is not deleted before the Really Small Message Broker file is edited, a mismatch can occur between two versions of the file. This can prevent Network Manager from starting.
  3. Edit the following file:
     $NCHOME/etc/precision/Precision.broker.cfg
  4. Locate the following section in the file:
    broker session =
      {
        'service' = '1883',
        'network' = '127.0.0.1'
      };
    Note: The broker session settings use the IP address of the loopback interface. This ensures that you can only access the broker from the local server. If you want to allow external connections then you must bind to the IP address of the server. Note that allowing external connections to the broker might constitute a security risk.
  5. Change the value of 'service' to the port you want to use. Ensure that it does not conflict with any other ports on your system.
  6. Change the value of 'network' to the address of the current server.
  7. Save and close the file.