Downloading The Junos Xml Protocol Perl Client And Prerequisites Package - 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

Junos 10.3 Junos XML Management Protocol Guide

Downloading the Junos XML Protocol Perl Client and Prerequisites Package

206
—Illustrates how to use a predefined query to request information
get_chassis_inventory.pl
from a device. The sample script invokes the
detail
option to request the same information as the Junos XML
<get-chassis-inventory><detail></get-chassis-inventory> tag sequence and the
command-line interface (CLI)
provided in the
examples/get_chassis_inventory
distribution.
—Illustrates how to change a device configuration by loading a file
load_configuration.pl
that contains configuration data formatted with Junos XML tag elements. The
distribution includes two sample configuration files,
set_login_user_foo.xml
; however, you can specify another configuration file on the
command line. The script is provided in the
the Junos XML protocol Perl distribution.
The following sample scripts are used together to illustrate how to store and retrieve
data from the Junos XML API (or any XML-tagged data set) in a relational database.
Although these scripts create and manipulate MySQL tables, the data manipulation
techniques that they illustrate apply to any relational database. The scripts are provided
in the
examples/RDB
directory in the Perl distribution:
—Illustrates how to retrieve routing platform configuration information.
get_config.pl
make_tables.pl
—Generates a set of Structured Query Language (SQL) statements for
creating relational database tables.
—Populates existing relational database tables with data extracted from
pop_tables.pl
a specified XML file.
—Transforms data stored in a relational database table into XML and
unpop_tables.pl
writes it to a file.
For instructions on running the scripts, see the
the Perl distribution.
To download the compressed tar archive files that contain the Junos XML protocol Perl
client distribution and the prerequisites package, perform the following steps:
Access the Junos XML protocol download page on the Juniper Networks website at
1.
https://www.juniper.net/support/xml/junoscript/
Click the link for the appropriate software release.
2.
Select the software tab.
3.
Click the links to download the client distribution and the prerequisites package that
4.
support the appropriate access protocols. Customers in the United States and
Canada can download the packages that support all access protocols including
SSH, SSL, clear-text and Telnet protocols (the domestic package). Customers in
other countries can download the packages that support only the clear-text and
Telnet protocols (the export package).
get_chassis_inventory
show chassis hardware detail
directory in the Junos XML protocol Perl
set_login_class_bar.xml
examples/load_configuration
or
README
README.html
.
Copyright © 2010, Juniper Networks, Inc.
method with the
command. The script is
and
directory in
file included in

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents