In this recipe, we'll configure a JUNOS event policy that reacts to an operational event, executes a CLI command to obtain output, and relays that command output to the NMS server for record-keeping.
Capturing output after 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 the NMS host with a suitable account profile so that the JUNOS device can access it. Steps 1 and 2 in the previous recipe on archiving configurations can help you complete this if necessary.