To verify that the syntax of a JUNOS configuration is correct, use the configuration mode commit check command:
- [edit]
- user@host# commit check
- configuration check succeeds
- [edit]
- user@host#
If the commit check command finds an error, a message indicates the location of the error.