Displaying Commit Script Output
Table 1 summarizes the Junos OS command-line
interface (CLI) commands you can use to monitor and troubleshoot commit
scripts. For more information about the
cscript.log file, see Tracing Commit Script Processing.
Tracing commit script processing, including the
cscript.log file, is not supported on the QFX3000-G
Table 1: Commit Script Configuration and Operational Mode Commands
|Configuration Mode Commands|
Display errors and warnings generated by commit scripts.
commit or commit check
Display detailed information about the commit operation and commit script execution.
commit | display detail
Display the underlying Extensible Markup Language (XML) data.
commit | display xml
Display the postinheritance contents of the configuration database. This view includes transient changes, but does not include changes made in configuration groups.
show | display commit-scripts
Display the postinheritance contents of the configuration database. This view excludes transient changes.
show | display commit-scripts no-transients
Display the postinheritance configuration in XML format. This is the configuration format that each commit script receives as input.
Viewing the configuration in XML format can be helpful when you are writing XML Path Language (XPath) expressions and configuration element tags.
show | display commit-scripts view
Display the postinheritance configuration in XML format, but exclude transient changes.
Display all configuration groups data, including script-generated changes to the groups.
show groups | display commit-scripts
Display a particular configuration group, including script-generated changes to the group.
show groups group-name | display commit-scripts
|Operational Mode Commands|
Display logging data associated with all commit script processing.
show log cscript.log
Display processing for only the most recent commit operation.
show log cscript.log | last
Display processing for script errors.
show log cscript.log | match error
Display processing for a particular script.
show log cscript.log | match filename