Search

1 to 10 of 25
Sort by

Blog Entry
Scripting How-To: Automate Junos using Python scripts

Using Python Scripts to Automate Junos You can use Python scripts to automate Junos. Click demo scripts to access the repository in GitHub...Run phase - provides the latest script for demo purposes

ksator's profile image

Blog Entry
Scripting How-To: Handle Python exceptions

Handle Python Exceptions You can handle Python exceptions when things go wrong. Specific exception names are imported as shown: from jnpr.junos.exception import * The following exceptions are defined: RpcError - general RPC error CommitError - resulting for...

Erdem's profile image

Blog Entry
FAQ: Learning About JET Part 1--Python on Junos OS

What is Python on-box scripting and how does it differ from SLAX on-box scripting? Python on-box scripting is being implemented to provide an alternative to SLAX for operation, event, and commit scripts

Erdem's profile image

Blog Entry
Scripting How-To: Connect to devices remotely

Connect to Devices Remotely Each managed Junos OS device is modeled as a jnpr.junos.Device variable (aka "instance"). The general process is you create a variable for each device, providing at least the hostname. You can optionally provide a username (the default is $USER ) and a...

Erdem's profile image

Blog Entry
Scripting How-To: Access RPC on demand

Access RPC On Demand Directly You should always have the ability to do anything that the Junos OS or XML API provide. Each Device variable has an rpc property to make accessing Junos OS at this low level easy. Junos PyEZ has metaprogramming to do what you want only when you need it ...

Erdem's profile image

Blog Entry
Expert Advice: Junos PyEZ and Python Automation Scripts

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

Erdem's profile image


Blog Entry
Scripting How-To: Use views for automation tasks

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. The purpose of Junos PyEZ is to abstract, or insulate, the user of the Table/View from this information. The View widgets are defined using...

Erdem's profile image

Blog Entry
Scripting How-To: Install the Junos PyEZ library

Install the PyEZ Library Junos PyEZ has been built and tested with Python 2.6 and 2.7. NOTE: Earlier versions of Python are known not to work. Additionally, no testing has been performed with Python 3.3 at this time. System Requirements Some of the project...

Erdem's profile image

Blog Entry
FAQ: Junos Automation

Is there a script that can help me prevent common human errors in my configuration?...SLAX and Automation How can I set up my script to deal with errors?...Is there a script that can help me prevent common syntax and programming errors?

Erdem's profile image