Junos 10.3 Junos XML Management Protocol Guide
92
Table 7: Regular Expression Operators for the matching Attribute
(continued)
Operator
Matches
(dollar sign)
The end of a line.
$
(paired square
One instance of one of the enclosed alphanumeric characters. To
[ ]
brackets)
indicate a range of characters, use a hyphen ( - ) to separate the
beginning and ending characters of the range. For example,
matches any letter or number.
(paired parentheses)
One instance of the evaluated value of the enclosed term. Parentheses
( )
are used to indicate the order of evaluation in the regular expression.
When the application requests Junos XML-tagged output (the default), the Junos XML
protocol server returns the requested object in
elements. For information about the attributes in the opening
"Requesting Information from the Committed or Candidate Configuration" on page 65.
<rpc-reply xmlns:junos="URL">
<configuration attributes>
<!-- opening tags for each parent of the parent level -->
<parent-level>
<first-matching-object>
<!-- child tag elements for the first object -->
</first-matching-object>
<second-matching-object>
<!-- child tag elements for the second object -->
</second-matching-object>
<!-- additional instances of the object -->
</parent-level>
<!-- closing tags for each parent of the object type -->
</configuration>
</rpc-reply>
The application can combine one or more of the
with the
attribute, to limit the set of possible matches to a specific range of
matching
objects, to request only identifiers, or both. For more information about those attributes,
see "Requesting a Specified Number of Configuration Objects" on page 84 and "Requesting
Identifiers Only" on page 86.
To specify the source of the output (candidate or active configuration) and request
special formatting of the output (for example, formatted ASCII text or an indicator for
identifiers), the application can include attributes in the opening
its opening
tag, or both. For more information, see "Specifying the Source
<junoscript>
and Output Format of Configuration Information" on page 65.
The application can request additional configuration elements of the same or other types
in the same
<get-configuration>
For more information, see "Requesting Multiple Configuration Elements Simultaneously"
on page 93.
<configuration>
count
,
start
tag element by including the appropriate tag elements.
Copyright © 2010, Juniper Networks, Inc.
[a-z0-9]
and
<rpc-reply>
tag
tag, see
<configuration>
, and
recurse
attributes along
tag,
<get-configuration>
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