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


test configuration

Syntax

test configuration (filename | terminal) 

Description

Verify that the syntax of a configuration file is correct.

If the configuration contains any errors, a message is displayed to indicate the line number and column number in which the error was found.

Options

filename—Name of the configuration file. Specify the filename as described in How to Specify Filenames and URLs.

terminal—Use the text you type at the terminal as input to the configuration. Type Ctrl-D to end terminal input.

Required Privilege Level

view

Sample Output

user@host> test configuration terminal
[Type ^D to end input]
system {
    host-name bluesky;
    paris-23;
    login;
}
terminal:3:(8) syntax error: paris
  [edit system]
    'paris-23;'
      syntax error
terminal:4:(11) statement must contain additional statements: ;
  [edit system login]
    'login ;'
      statement must contain additional statements
configuration syntax failed

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