Writing Junos Xml Protocol Perl Client Applications; Overview Of The Junos::device Perl Module And Sample Scripts - Juniper JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 Manual

Junos xml management protocol guide
Hide thumbs Also See for JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010:
Table of Contents

Advertisement

CHAPTER 9
Writing Junos XML Protocol Perl Client
Applications

Overview of the Junos::Device Perl Module and Sample Scripts

Copyright © 2010, Juniper Networks, Inc.
Juniper Networks provides a Perl module
easily develop custom Perl scripts for configuring and monitoring switches, routers, and
security devices running Junos OS. The module implements a
client applications can use to communicate with the Junos XML protocol server on a
device running Junos OS. The Perl distribution includes several sample Perl scripts, which
illustrate how to use the module in scripts that perform various functions.
This chapter discusses the following topics:
Overview of the Junos::Device Perl Module and Sample Scripts on page 205
Downloading the Junos XML Protocol Perl Client and Prerequisites Package on page 206
Unpacking the Junos XML Protocol Perl Client and Sample Scripts on page 207
Installing the Prerequisites Package and the Junos XML Protocol Perl Client on page 207
Tutorial: Writing Perl Client Applications on page 210
Mapping CLI Commands to Perl Methods on page 232
The Junos XML protocol Perl distribution uses the same directory structure for Perl
modules as the Comprehensive Perl Archive Network (
includes a
directory for the
lib
directory for the sample scripts.
Client applications use the
protocol server. The library contains several modules, but client applications directly
invoke only the
JUNOS::Device
The sample scripts illustrate how to perform the following functions:
—Illustrates how to write scripts to monitor device status and diagnose
diagnose_bgp.pl
problems. The sample script extracts and displays information about a device's
unestablished Border Gateway Protocol (BGP) peers from the full set of BGP
configuration data. The script is provided in the
Junos XML protocol Perl distribution.
JUNOS::Device
module and its supporting files, and an
JUNOS
object to communicate with a Junos XML
JUNOS::Device
object. All of the sample scripts use this object.
examples/diagnose_bgp
to help you more quickly and
JUNOS::Device
object that
). This
http://www.cpan.org/
examples
directory in the
205

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents