The steps are as follows:
- On the JUNOS host, configure an event handling policy that should be run in response to the configuration commit completions and specify an archive repository for uploading files. Use the execute-commands mechanism to run a series of JUNOS OS commands in response to the event:
adamc@router> show configuration event-options policy CONFIG-DIFF { events ui_commit_completed; then { execute-commands { commands { "show configuration | match Last\ commit:"; "show configuration | compare rollback 1"; } output-filename commit; destination NMS; output-format text; } } }
- Repeat this step for any and all JUNOS devices that you want to monitor in this manner.
- Optionally, make some test commit operations ...