Connecting To The Junos Xml Protocol Server From The Cli; Starting The Junos Xml Protocol Session - 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

Starting the Junos XML Protocol Session

38
Emits the initialization PI and tag, as described in "Emitting the Initialization PI and
1.
Tag" on page 39.
Authenticates with the Junos XML protocol server, as described in "Authenticating
2.
with the Junos XML Protocol Server" on page 43.
If using the SSH or Telnet protocol, the client application performs the following steps:
Uses the protocol's built-in authentication mechanism to authenticate.
1.
Issues the
junoscript
2.
convert the connection into a Junos XML protocol session. For a C programming
language example, see "Writing Junos XML Protocol C Client Applications" on
page 233.
Emits the initialization PI and tag, as described in "Emitting the Initialization PI and
3.
Tag" on page 39.

Connecting to the Junos XML Protocol Server from the CLI

The Junos XML management protocol and Junos XML API are primarily intended for use
by client applications; however, for testing purposes you can establish an interactive
Junos XML protocol session and type commands in a shell window. To connect to the
Junos XML protocol server from the CLI operational mode, issue the
command (the
interactive
you type):
user@host> junoscript interactive
To begin a Junos XML protocol session over the connection, emit the initialization PI and
tag that are described in "Emitting the Initialization PI and Tag" on page 39. You can then
type sequences of tag elements that represent operational and configuration operations,
which are described in "Requesting Information" on page 61, "Changing Configuration
Information" on page 103, and "Committing a Configuration" on page 133. To eliminate
typing errors, save complete tag element sequences in a file and use a cut-and-paste
utility to copy the sequences to the shell window.
NOTE: When you close the connection to the Junos XML protocol server (for example,
by emitting the
<request-end-session/>
completely closes your connection instead of returning you to the CLI operational mode
prompt. For more information about ending a Junos XML protocol session, see "Ending
a Junos XML Protocol Session and Closing the Connection" on page 55.
Each Junos XML protocol session begins with a handshake in which the Junos XML
protocol server and the client application specify the version of XML and the version of
the Junos XML management protocol they are using. Each party parses the version
command to request that the Junos XML protocol server
option causes the Junos XML protocol server to echo what
and
</junoscript>
junoscript interactive
tags), the routing platform
Copyright © 2010, Juniper Networks, Inc.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents