Configuring Notification Service for JET Applications
In notification service, the application receives asynchronous notifications of events occurring on Junos OS.
Junos OS events are published with topics. Clients can subscribe to events they are interested in by using topics. Once a client subscribes, only the events matching the topic or topics are delivered to the client. This type of messaging requires a broker. The message broker is responsible for distributing messages to the subscribed clients based on the topic of a message.
The default behavior is to disallow all clients to connect to the broker. In order to allow clients to connect to the broker for notifications, users must configure the CLI allow-clients statement at the [edit system services extension-service notification] hierarchy level.
To configure a device to support notifications for JET applications:
- Enter the CLI and go to the [edit system services
extension-service notification] hierarchy level.% cliuser@device> configureuser@device# edit system services extension-service notification[edit system services extension-service notification]
- Configure the allow-clients statement. user@device# set allow-clients address ip-address
You can set a series of addresses at once:user@device# set allow-clients address [address1 address2 address3]
- Configure the maximum connections.
- Configure the port number.
Following is the hierarchy for the system services extension-service notification configuration statement: