In this recipe, we'll build on what we've learnt with the event policy framework in the previous two recipes, but we'll explore custom scripts that can fire when an event triggers. Specifically, we'll enhance the previous recipe so that, instead of just capturing the output to the show interface command, we actually interpret the SNMP_TRAP_LINK_DOWN event to extract the effected interface and then only execute the command for that interface.
Custom responses to an event
Getting ready
In order to complete this recipe, you need access to a JUNOS device and a UNIX-like network management station running an OpenSSH (or equivalent) server. You should have configured your network management host with a suitable...