[Contents] [Prev] [Next] [Index] [Report an Error]

Commit Script Input

The input for a commit script is the postinheritance candidate configuration in JUNOS XML API format. The term postinheritance means that all configuration group values have been inherited by their targets in the candidate configuration and the inactive portions of the configuration have been removed. For more information about configuration groups, see the JUNOS System Basics Configuration Guide.

After you issue a commit command, the JUNOS software automatically generates the candidate configuration in XML format and reads it into the management process (mgd), at which time the input is evaluated by any commit scripts.

To display the XML format of the postinheritance configuration, issue the show | display commit-scripts view command:

[edit]
user@host# show | display commit-scripts view

To display all configuration groups data, including script-generated changes to the groups, issue the show groups | display commit-scripts command:

[edit]
user@host# show groups | display commit-scripts

To save the commit script input to a file, add the save command to the command line:

[edit]
user@host# show | display commit-scripts view | save filename.xml

By default, the file is placed in your home directory on the routing platform.


[Contents] [Prev] [Next] [Index] [Report an Error]