test configuration
Syntax
test configuration filename
Release Information
Command introduced before Junos OS Release 7.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
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.
Required Privilege
Level
view
List of Sample Output
test configuration on page 477
Output Fields
When you enter this command, you are provided feedback on the status of your request.
test configuration
test configuration
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
477
Copyright © 2010, Juniper Networks, Inc.
Chapter 27: Operational Mode Commands for Configuration Management
Summary of Contents for JUNOS OS 10.3 - SOFTWARE
Page 325: ...CHAPTER 17 Operational Mode Commands for System Setup 229 Copyright 2010 Juniper Networks Inc ...
Page 1323: ...CHAPTER 56 Operational Mode Commands for Interfaces 1227 Copyright 2010 Juniper Networks Inc ...
Page 2841: ...CHAPTER 86 Operational Commands for 802 1X 2745 Copyright 2010 Juniper Networks Inc ...
Page 3367: ...CHAPTER 113 Operational Mode Commands for CoS 3271 Copyright 2010 Juniper Networks Inc ...
Page 3435: ...CHAPTER 120 Operational Mode Commands for PoE 3339 Copyright 2010 Juniper Networks Inc ...
Page 3529: ...CHAPTER 126 Operational Mode Commands for MPLS 3433 Copyright 2010 Juniper Networks Inc ...