Training

Books

Navigation
This Week: Applying Junos Automation

All three Day One Automation Guides in a single PDF book! Also includes a copy and paste edition for obtaining the book’s scripts.

As you work with the Junos operating system, you will build a knowledge reservoir of best practices and lessons learned, a body of intelligence that can be available 24x7 to help your network run optimally. Junos automation allows you to automate your accumulated intelligence through scripts that automatically control Junos devices according to your desired best practices. This book demonstrates how to implement this inherent potential in the Junos operating system.

Previously published as three separate Day One guides, This Week: Applying Junos Automation now combines Junos operation, event, and configuration automation techniques into a single, comprehensive volume.

  • Learn to use reference scripts from this book and Juniper’s script library;
    • interpret the XML data structures used by Junos devices;
    • communicate with Junos through the Junos XML API;
    • ease how you write XML data structures using the SLAX XML abbreviated format; and,
    • create your own customized operation scripts.
  • Understand the difference between an op script and an event script;
    • identify potential events that could be automated;
    • build the needed event policy to match desired events and conditions; and,
    • create your own customized event scripts.
  • Understand the role of and possible uses for commit scripts;
    • provide feedback as part of the commit process through warning or syslog messages;
    • halt the commit process with error messages;
    • alter the configuration through commit scripts; and,
    • create your own customized commit scripts.

Sample Pages

Download Book

Day One books are a free download for our J-Net members*. If you’re not a J-Net member, create a user account now. It’s fast and there’s no commitment or spam. Once you’re a member you can come back and download any of the Day One books.

Download: J-Net Member
Download: Not a J-Net Member

* If you have an existing Juniper user account, you can use it to login to J-Net

About the Author(s)

Curtis Call is a Systems Engineer at Juniper Networks and the author of the first three Day One booklets in the Junos Automation Series.

Author Q & A

What got you started on this book?

I was interested in writing some on-box Junos scripts for a customer that I work with, and wanted to use the SLAX language, but I discovered that there were no SLAX specific training materials. Instead, the assumption was that anyone learning SLAX would already have a XSLT background, which I - and I assume most others - did not have.

So, I learned XSLT, and then learned SLAX, and along the way I decided that I wanted to make it easier for others to follow after by helping create good SLAX focused documentation so that aspiring Junos script writers can learn SLAX directly and not worry about spending any time understanding XSLT.

Who is this book for?

The Junos Software Automation Series are written for anyone that wants to understand how to write or work with on-box Junos scripts. The expectation is that readers will come with some degree of programming background as well as a good understanding of Junos.

After reading this book, what will the reader learn or know?

Reading the Junos Software Automation Series, and performing the practice exercises provided, will provide the reader with a good base understanding of the SLAX scripting language rules, how to write op, commit, and event scripts, as well as how to navigate through the hierarchy of Junos XML data.

What do you recommend as the next item to read after this book? What are your plans for more?

A more in-depth book is in the works to provide more information about debugging, scripting tips, as well as thoughts on how to turn a script into a complete solution.

Did you create a test bed for the book? How much set up did it take?

Most scripts can be tested on a single Junos device, so no elaborate test bed was required. This is great news both for the writer as well as for the readers; because it means that you can get good hands-on scripting experience with a very minimal setup.