Providing Configuration Data As A Data Stream - 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

Providing Configuration Data as a Data Stream

106
ftp://username:password@hostname/path/filename
A filename on an HTTP server has the following form:
http://username:password@hostname/path/filename
In each case, the default value for the
To specify an absolute path, the application starts the path with the characters
example,
:
ftp
//username:password@hostname/%2Fpath/filename
The
attribute can be combined with one or more of the following other attributes in
url
the
<load-configuration/>
, which is described in "Defining Configuration Data as Formatted ASCII Text or
format
Junos XML Tag Elements" on page 107.
, which is described in "Replacing the Entire Configuration" on page 108 and the
action
subsections of "Creating, Modifying, or Deleting Configuration Elements" on page 109.
The following example shows how to incorporate Junos XML-tagged configuration data
stored in the file
/var/configs/user-accounts
cfg-server.mycompany.com
for legibility only.
Client Application
<rpc>
<load-configuration \
url="ftp://admin:AdminPwd@cfg-server.mycompany.com/var/configs/user-accounts"/>
</rpc>
To provide new configuration data as a data stream, a client application encloses the
<load-configuration>
tag element in an
To define the configuration elements to change as Junos XML tag elements, the
application emits the tag elements representing all levels of the configuration hierarchy
from the root (represented by the
to change:
<rpc>
<load-configuration>
<configuration>
<!-- tag elements representing the configuration data -->
</configuration>
</load-configuration>
</rpc>
To define the configuration elements to change as formatted ASCII text, the application
encloses them in a
<configuration-text>
attribute in the opening
<load-configuration>
<rpc>
variable is the home directory for the username.
path
tag:
on the FTP server called
. The opening
<load-configuration>
<rpc>
tag element.
tag element) down to each element
<configuration>
tag element and includes the
tag:
%2F
.
tag appears on two lines
Junos XML Protocol Server
<rpc-reply xmlns:junos="URL ">
<load-configuration-results>
<load-success/>
</load-configuration-results>
</rpc-reply>
format="text"
Copyright © 2010, Juniper Networks, Inc.
; for

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents