1 to 10 of 203
Sort by

Discussion Post
Running script on multiple devices with space, showing result on one page

Say that i have this really small script used here (not nececary this scritpt, but something similar that just is supposed to display info from the device) version 1.0; ns junos = " http:/...

Blog Entry
Scripting How-To: Automation of dual-AD software upgrade

Automation of dual-AD software upgrade In a typical dual-aggregated Junos Fusion system software upgrade, a user needs to copy images to both aggregated devices and execute the software upgrade command. Consider a situation where each aggregated device has dual routing engines, and the...

Blog Entry
Scripting How-To: Automation of peer AD’s single-homed satellite software upgrade

The Junos Fusion system allows you to configure a satellite as: single homed e.g. satellite having cascading link(s) to only one of the aggregation devices in a dual aggregated device setup or dual homed e.g. satellite having cascading link(s) to both the aggregation devices in a dual...

Blog Entry
Scripting How-To: Synchroniz​ing Configurations Across Devices in Different Data Centers

In a scenario with two M Series routers in different data centers, very large portions of the configuration on the routers must be identical (for example, the entire configuration at the [edit services] hierarchy level). To ensure that updates to certain portions of the configuration on...

Blog Entry
Scripting How-To: Tracking the Failure or Success of a SLAX Script with Variables

To track the failure or success of a SLAX script, you typically look through several blocks of XML. If a certain value exists in one of more of the blocks, run a "success" block of code; otherwise, run a "failure" block of code. This would be trivial if the SLAX script had variables that you...

Blog Entry
What are AI-Scripts?

Question What are AI-Scripts? Answer AI-Scripts are specialized operational and event scripts from Juniper Networks that detect events and provide information for analysis, to periodically collect intelligence information, and to package all incident and intelligence event data into a...

Blog Entry
Scripting How-To: Get the interface-flapped time in seconds instead of in days and hours

Overview To retrieve the interface-flapped time in seconds instead of in days and hours from a SLAX script Discussion The interface-flapped time from the show interfaces command in Junos OS indicates the last time the interface went down and came back up. This information is...

Blog Entry
Which scripting language to use: SLAX or XSLT?

Question Which scripting language should you use for writing Junos automation scripts: SLAX or XSLT? Answer You could use both. However, the SLAX syntax is signficantly easier to develop scripts with. When Junos processes SLAX, it converts it first to XSLT. It is possible, and sometimes...

Blog Entry
Scripting How-To: Commit Op scripts in private mode

Overview This topic describes how to commit Op scripts in private mode. Example Configuration This example shows how you commit an Op script in a private configuration session. var $connection = jcs:open(); var $edit-private = <open-configuration> ( <private>; ) ...