Requesting Multiple Configuration Elements Simultaneously
Copyright © 2010, Juniper Networks, Inc.
The following example shows how to request just the identifier for the first two
SONET/SDH interfaces configured at the
Client Application
Junos XML Protocol Server
<rpc>
<get-configuration>
<configuration>
<interfaces matching="interface[name='so-.*']" count="2" recurse="false">
</configuration>
</get-configuration>
</rpc>
<rpc-reply xmlns:junos="URL ">
<configuration junos:changed-seconds=" seconds " \
</configuration>
</rpc-reply>
Within a
<get-configuration>
configuration elements of the same type or different types. The request includes only
one
<configuration>
tag element (the Junos XML protocol server returns an error if there
is more than one).
If two requested objects have the same parent hierarchy level, the client can either include
both requests within one parent tag element, or repeat the parent tag element for each
request. As an example, at the
list of configured services and the identifier tag element for RADIUS servers in either of
the following two ways:
<!-- both requests in one parent tag element -->
<rpc>
<get-configuration>
<configuration>
<system>
<services/>
<radius-server>
<name/>
</radius-server>
</system>
</configuration>
</get-configuration>
</rpc>
<!-- separate parent tag element for each request -->
<rpc>
<get-configuration>
<configuration>
[edit interfaces]
junos:changed-localtime="timestamp">
<interfaces>
<interface junos:position="41" junos:total="65">
<name>so-0/0/0</name>
</interface>
<interface junos:position="42" junos:total="65">
<name>so-0/0/1</name>
</interface>
<interfaces>
tag element, a client application can request multiple
hierarchy level the client can request the
[edit system]
Chapter 4: Requesting Information
hierarchy level.
93
Need help?
Do you have a question about the JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 and is the answer not in the manual?
Questions and answers