Commit Script Input
The input for a commit script is the postinheritance candidate configuration in JUNOS XML API format. The term postinheritance means all configuration group values have been inherited by their targets in the candidate configuration and 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
commitcommand, 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 viewcommand:[edit]user@host#show | display commit-scripts viewTo display all configuration groups data, including script-generated changes to the groups, issue the
show groups | display commit-scriptscommand:[edit]user@host#show groups | display commit-scriptsTo save the commit script input to a file, add the
savecommand to the command line:[edit]user@host#show | display commit-scripts view | savefilename.xmlBy default, the file is placed in your home directory on the routing platform.