Junos Automation (Scripting)
Showing results for 
Search instead for 
Do you mean 
Trusted Contributor
Posts: 28
Registered: ‎06-11-2008
0 Kudos

What is Junos Automation?

[ Edited ]

Automate What You Can, Do What You Must...


Junos Automation is a powerful, yet flexible onbox scripting toolset built-in Junos operating system.


Think of it as an extension of Junos...which automate and streamline your day-to-day operational and configuration tasks:


  • define and enforce best practices and rules in configuration changes
  • create and customizde your own CLI commands
  • embed predefined event handling and action logic to execute tasks in realtime


Junos Automation comes standard in all Junos platforms - routing, switching and security devices.


Not only it helps to lower the operational expense, it also increases network uptime and availability by minimizing misconfiguration due to human factors.


To learn more, visit the Junos Automation landing page in Junos Central

Posts: 72
Registered: ‎10-18-2010
0 Kudos

Re: What is Junos Automation?

Thank you for your explanation.


I want to develop a JUNOS Script for instructing a Juniper SRX device to block a specified IP address thereby preventing it from accessing a network.


Thank you very much.

Posts: 1
Registered: ‎07-19-2011
0 Kudos

Re: What is Junos Automation?



You mention that Junos Automation can be used for "create and customizde your own CLI commands". Do you have an exmaple that demonstrates this? For example a 'show my-command hello-world'-demo? ...where a script is "plugged into" a user-defined place in the CLI command-tree?





Juniper Employee
Posts: 21
Registered: ‎09-29-2009
0 Kudos

Re: What is Junos Automation?

"op" scripts are operational mode commands and are executed from the JUNOS CLI using the "op" command:


op <name-of-script> [<parameter-name> <parameter-value>] ...


A simple example would be:




A not-so-simple example would be: