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.
Question The problem with using a restricted keyword for security zones can be manually fixed by issuing the following command in configuration mode and subsequently changing all the references to the keyword: rename security zones security-zone restricted-keyword to security-zone safe-name Is it possible to replicate the same rename action through a script (to change the zone name without disturbing the contents)? Answer If using NETCONF with PERL, use the EZXML module that allows you to create XML to send to the Juniper Networks device easily
Ensure Proper Ownership and Permissions on File Creation in SLAX From time to time you might find a situation where your SLAX script needs to write data to a file for some later processing or review
Identify Configuration Identifiers Identifiers are used as unique keys to differentiate between two otherwise identical configuration stanzas...This is how the jcs:emit-change template builds its change configuration hierarchies
Junos Space Network Management Platform Configlets and Scripts Configlets Configlets are configuration tools provided by the Junos Space Network Management Platform that enable: Toggling an Item in the Junos OS Configuration Add Lag Member Configlet Enabling or Disabling Physical Interfaces Local Scripts Local Scripts (from Junos Space Release 13.1 and later) are provided by the Junos Space image and integrated with Junos OS: Displaying Script Results How to open an SSH session from within a SLAX script Using Local Scripts with an External Data Set A local script to view, install or delete license keys on devices Local Script to Find Open Ports Across Multiple Devices Scripting How-To Articles Toggling an Item in the Junos OS Configuration A simple configlet that allows you to toggle the Junos OS configuration, for example, activate a deactivated knob or vice versa. Displaying Script Results Displaying results from within Junos Space 13.1R1.6 or later. How to open an SSH session from within a SLAX script Allows Junos Space 13.2 and later to open an SSH session to execute a command on multiple devices. Using Local Scripts with an External Data Set This article shows you how to pull information from an external data set (XML file) to use in a local (commit) script to configure devices that may or may not have unique configuration needs
Junos Automation How do I determine what code to automate? How can I use custom templates or functions in my automation?...SLAX and Automation How can I set up my script to deal with errors?