The JUNOS operating system provides a comprehensive set of network functionalities across a series of platforms and in the previous chapters we've seen useful recipes that help us automate or simplify some operations and configuration changes.
But all the recipes that we've seen so far have always been user-initiated. They needed a user to invoke them in some way even if that user was a machine agent driving the JUNOS device through NETCONF-over-SSH or through the REST API. What if we want to automatically deal with events that might happen on the network with some prescribed actions?
This is where the JUNOS event framework comes into its own. The JUNOS event framework tightly integrates with the conventional syslog-style logging infrastructure and enables users and operators to trap certain events and trigger custom actions based on them.
Event policies...