To request the entire configuration, a client application encloses the <get-configuration/> tag in an <rpc> tag element:
<rpc>
<get-configuration/>
</rpc>
When the application requests JUNOS XML-tagged output (the default), the JUNOScript server returns the requested configuration in <configuration> and <rpc-reply> tag elements. For information about the attributes in the opening <configuration> tag, see Requesting Information from the Committed or Candidate Configuration.
<rpc-reply xmlns:junos="URL">
<configuration attributes>
<!- - JUNOS XML tag elements for all configuration elements - ->
</configuration>
</rpc-reply>
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 <get-configuration/> tag, its opening <junoscript> tag, or both. For more information, see Specifying the Source and Output Format of Configuration Information.
The following example shows how to request the complete candidate configuration tagged with JUNOS XML tag elements (the default). In actual output, the JUNOS-version variable is replaced by a value such as 9.3R1 for the initial version of JUNOS Release 9.3.
