Junos Automation (Scripting)
Highlighted
Junos Automation (Scripting)

Run same command on multiple switches

‎08-31-2020 07:15 AM

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 REPLIES 2
Highlighted
Junos Automation (Scripting)
Solution
Accepted by topic author JamesDore
‎08-31-2020 09:06 AM

Re: Run same command on multiple switches

‎08-31-2020 07:32 AM

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-config...


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

Regards,
A.A.
Highlighted
Junos Automation (Scripting)

Re: Run same command on multiple switches

‎08-31-2020 07:45 AM

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-mod...

 

Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home
Feedback