Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


test configuration



Release Information

Command introduced before Junos OS Release 7.4.

Command introduced in Junos OS Release 9.0 for EX Series switches.

Command introduced in Junos OS Release 11.1 for the QFX Series.

syntax-only option introduced in Junos OS Release 12.1.

Command introduced in Junos OS Release 14.1X53-D20 for OCX Series switches.


Verify that the syntax of a configuration file is correct. If the configuration contains any syntax or commit check errors, a message is displayed to indicate the line number and column number in which the error was found. When using the filename option, this command only accepts text files.


filenameName of the configuration file. This file must be a text file and no other type.
syntax-only(Optional) Check the syntax of a partial configuration file, without checking for commit errors.

Required Privilege Level


List of Sample Output

test configuration

Output Fields

When you enter this command, you are provided feedback on the status of your request.

Sample Output

test configuration

user@host> test configuration terminal