Junos Automation (Scripting)
Reply
Trusted Contributor
roy_lee
Posts: 28
Registered: ‎06-11-2008
0

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

Contributor
kunle.akinloye
Posts: 72
Registered: ‎10-18-2010
0

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.

Visitor
marska
Posts: 1
Registered: ‎07-19-2011
0

Re: What is Junos Automation?

Hi,

 

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?

 

Thanks!

Martin

 

Juniper Employee
PhilShafer
Posts: 19
Registered: ‎09-29-2009
0

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:

 

https://github.com/Juniper/junoscriptorium/tree/master/library/juniper/op/display/cpu-usage-60

 

A not-so-simple example would be:

 

https://github.com/Juniper/junoscriptorium/blob/master/library/juniper/op/network/share-data/how-to....

 

Thanks,

 Phil

 

Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.