O'Reilly logo

JUNOS Automation Cookbook by Adam Chappell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Custom responses to an event

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required