test configuration
Syntax
test configuration filename syntax-only
Description
구성 파일의 구문이 올바른지 확인합니다. 구성에 구문이나 커밋 검사 오류가 포함되어 있으면 오류가 발견된 줄 번호와 열 번호를 나타내는 메시지가 표시됩니다. 파일 이름 옵션을 사용하는 경우 이 명령은 텍스트 파일만 허용합니다.
Options
파일 | 구성 파일의 이름입니다. 이 파일은 텍스트 파일이어야 하며 다른 유형은 없어야 합니다. |
구문 전용 | (선택사항) 커밋 오류를 검사하지 않고 부분 구성 파일의 구문을 확인합니다. |
Required Privilege Level
보기
Output Fields
이 명령을 입력하면 요청 상태에 대한 피드백이 제공됩니다.
Sample Output
test configuration
user@host> test configuration terminal [Type ^D to end input] system { host-name host; test1; login; } terminal:3:(8) syntax error: test [edit system] 'test;' syntax error terminal:4:(11) statement must contain additional statements: ; [edit system login] 'login ;' statement must contain additional statements configuration syntax failed
Release Information
Junos OS 릴리스 7.4 전에 명령어 도입.
syntax-only
Junos OS 릴리스 12.1에 소개된 옵션입니다.