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

There's more

It's possible to arrange for the format of the captured output to be the native CLI ASCII text rather than XML by using the output-format statement. In our example, we can modify the configuration of the event-policy so that it looks like this in order to get the output as a plain text:

     adamc@router> show configuration event-options policy SHOW-INT      events snmp_trap_link_down;     then {         execute-commands {             commands {                 "show interfaces";             }             output-filename show-int;             destination NMS;             output-format text;         }     }

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