Log in to ask questions, share your expertise, or stay connected to content you value. Don’t have a login? Learn how to become a member.
To quickly ramp up on Junos Automation, click Quick Start - Junos Automation...How can I use custom templates or functions in my automation? Is there a script that can help me prevent common human errors in my configuration?
Making Junos Automation Scripts Robust Making your Junos automation scripts robust ensures that you do not need to manually restart your script any time your router reboots or performs an RE switchover. Learn techniques for making your scripts run reliably by reading: Best Practices Series: Make Your Junos Automation Scripts More Robust Making Scripts Robust: Checking Status Making Scripts Robust: Handling Routing Engine Switchovers Making Scripts Robust: Recovering from Power Loss or Routing Engine Restart Making Scripts Robust: Managing Retries #junosautomation #Slax #ExpertAdvice
Operation, event, commit and SNMP scripts can also now be written in Python...Junos PyEZ eases Python script development by providing an easy Python API to interface with the router
Use Views for Automation Tasks A View defines the mapping between the Junos OS or XML and the field names by which you want to retrieve the data
3 Comments - no search term matches found in comments.
This can be simplified with SLAX automation. Using a SLAX script, the user can upgrade all the routing-engines by executing a single operational cli command. The user needs to copy the JUNOS software image to the aggregated device where this operational script is present
Question Which scripting language should you use for writing Junos automation scripts: SLAX or XSLT?...However, the SLAX syntax is signficantly easier to develop scripts with. When Junos processes SLAX, it converts it first to XSLT
Question Is it possible to use Junos automation scripts to add a new virus signature to an SRX Series device? Answer As far as whether or not you can update a virus definition file, I am not familiar with the process to do that in devices running Junos OS, but if it is something that can be accomplished through CLI commands, rather than through shell, then it should be possible to do it from a script as well. #FAQ #Junosautomationscripts #srxseries
Question What do AI-Scripts do? Answer AI-Scripts: React to specific incident events that occur on devices and provide relevant information about the problems for analysis Periodically collect data on events that can be used to predict and prevent risks in the future
Question How can you tell what version of AI-Scripts is installed on a device? Answer The show version CLI operational command displays the version of the AI-Scripts install package that is installed on a device. The JMB contains the output of the show version CLI command to indicate the version of the AI-Script install package installed on a device
Question How do you upgrade AI-Scripts? Answer To upgrade up to AI-Scripts Release 4.1R9 and earlier, follow the steps below: Install the newer version of the AI-Scripts using the request system scripts add < package name > CLI command. Verify that the AI-Scripts are activated: user@host# show configuration groups juniper-ais | display commit-scripts NOTE : For upgrading AI-Scripts on an SRX cluster, see KB 30556 To upgrade AI-Scripts from Release 5.0R1.0 to Release 5.0R2.0 and later releases, follow the steps below: NOTE : Before upgrading AI-Scripts from Release 5.0R1.0 to Release 5.0R2.0, ensure that you uninstall AI-Scripts 5.0R1.0 from the device (all Routing Engines of a multichassis device). If AI-Scripts Release 5.0R1.0 is not uninstalled before installing AI-Scripts Release 5.0R2.0, the first commit of AI-Scripts Release 5.0R2.0 may take excessively long time
2 Comments - no search term matches found in comments.