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
- Ensure that all ncp processes have been stopped.
- 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.
- Edit the following file:
$NCHOME/etc/precision/Precision.broker.cfg
- 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.
- 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.
- Change the value of
'network'
to the address
of the current server.
- Save and close the file.