Automation

 View Only
last person joined: 6 days ago 

Ask questions and share experiences about Apstra, Paragon, and all things network automation.
  • 1.  Run same command on multiple switches

    Posted 08-31-2020 07:16

    Hi all,

    Given I know a small amount of python, a small amount of bash scripting and a fair bit of Junos CLI commands, what would be the quickest process/framwork/method/recipe for me to deliver SET commands to multiple switches (about 70 at a time)? 

     

    I need a process that's not going to cost me a fortune in commercial applications, and doesn't require learning a whole new language from scratch, and can be run from a Linux or MacOS terminal session.

     

    Cheers!

    J



  • 2.  RE: Run same command on multiple switches
    Best Answer

     
    Posted 08-31-2020 07:33

    Hi,

     

    you may use JUNOS PyEZ for doing the required task with moderate python scripting experience as PyEZ contains libraries and tools for common tasks to be used without need to craft the code from scratch, please refer to the below link for example

    Using the Junos PyEZ Config Utility to Configure Devices Running Junos OS

     

    https://www.juniper.net/documentation/en_US/junos-pyez/topics/task/program/junos-pyez-program-configuration-data-loading.html


    If this solves your problem, please mark this post as "Accepted Solution."



  • 3.  RE: Run same command on multiple switches

    Posted 08-31-2020 07:46

    And Ansible is the other quick startup option to execute commands on Junos devices.

     

    https://www.juniper.net/documentation/en_US/junos-ansible/topics/reference/general/junos-ansible-modules-overview.html