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

How to do it…

The steps for the recipe are as follows:

  1. Verify the configuration of the network management host to ensure that an account profile exists that can be used by the JUNOS router in order to upload files.
      user$ touch test.txt      user$ scp test.txt junos@10.0.201.220:/home/junos/test.txt
  1. If necessary, configure the JUNOS device with the access details for the destination of the network management station.
      adamc@router# set event-options destinations NMS archive-sites              "scp://junos@10.0.201.220//home/junos" password MyPasswordHere     [edit event-options]     adamc@router# show          destinations {         NMS {            archive-sites {             "scp://junos@10.0.201.220//home/junos" password                 "$9$fQ390BEevLBI-w"; ## SECRET-DATA            }         }      }
  1. Configure an event policy on the ...

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