get-configuration tag (JUNOScript)changed attribute (JUNOScript)get-configuration tagdatabase attribute (JUNOScript)get-configuration tagformat attribute (JUNOScript)get-configuration taginherit attribute (JUNOScript)get-configuration taggroups attribute (JUNOScript)get-configuration tag<rpc>
<get-configuration [changed="changed"] [database="(candidate | committed)"]
[format="(text | xml)"]
[inherit="(defaults | inherit)" [groups="groups"]]/>
<get-configuration [changed="changed"] [database="(candidate | committed)"]
[format="(text | xml)"]
[inherit="(defaults | inherit)" [groups="groups"]]/>
<!- - tag elements for the configuration element to display - ->
</get-configuration>
</rpc>
Request configuration data from the JUNOScript server. The attributes specify the source and formatting of the data to display. Either the entire configuration hierarchy or a section can be displayed:
changed—Specifies that the junos:changed="changed"; attribute should appear in the opening tag of each changed configuration element.
The attribute appears in the opening tag of every parent tag element in the path to the changed configuration element, including the top-level opening <configuration> tag. If the changed configuration element is represented by a single (empty) tag, the junos:changed="changed" attribute appears in the tag. If the changed element is represented by a container tag element, the junos:changed="changed" attribute appears in the opening container tag and also in each child tag element enclosed in the container tag element.
The database attribute can be combined with the changed="changed" attribute to request either the candidate or active configuration:
![]() |
Note: When a commit operation succeeds, the JUNOScript server removes the junos:changed="changed" attribute from all tag elements. However, if warnings are generated during the commit, the attribute is not removed. In this case, the junos:changed="changed" attribute appears in tag elements that changed before the commit operation as well as on those that changed after it. |
An example of a commit-time warning is the message explaining that a configuration element will not actually apply until the routing platform is rebooted. The warning appears in the tag string that the JUNOScript server returns to confirm the success of the commit, enclosed in an <xnm:warning> tag element.
To remove the junos:changed="changed" attribute from elements that changed before the commit, take the action necessary to eliminate the cause of the warning, and commit the configuration again.
database—Specifies the version of the configuration from which to display data. There are two acceptable values:
format—Specifies the format in which the JUNOScript server returns the configuration data. There are two acceptable values:
groups—Specifies that the junos:group="group-name" attribute appears in the opening tag for each configuration element that is inherited from a configuration group. The group-name variable specifies the name of the configuration group.
The groups attribute must be combined with the inherit attribute, and the one acceptable value for it is groups.
inherit—Specifies how the JUNOScript server displays statements that are defined in configuration groups. If the inherit attribute is omitted, the output uses the <groups>, <apply-groups>, and <apply-groups-except> tag elements to represent user-defined configuration groups and does not include tag elements for statements defined in the junos-defaults group.
There are two acceptable values:
See Requesting Configuration Information.
<rpc>, <xnm:warning>, junos:changed, junos:group, JUNOS XML API Configuration Reference