Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

annotate

Syntax

annotate statement "comment-string"

Release Information

Command introduced before Junos OS Release 7.4.

Description

Add comments to a configuration. You can add comments only at the current hierarchy level.

Any comments you add appear only when you view the configuration by entering the show command in configuration mode or the show configuration command in operational mode.

Note: The Junos OS supports annotation up to the last level in the configuration hierarchy, including onliners. However, annotation of parts (child statements or identifiers within a oneliner) of the onliner is not supported. For example, in the following sample configuration hierarchy, annotation is supported up to the onliner level 1 , but not supported for the metric child statement and its attribute 10:

[edit protocols]isis {interface ge-0/0/0.0 {level 1 metric 10;}}}

Options

comment-string—Text of the comment. You must enclose it in quotation marks. In the comment string, you can include the comment delimiters /* */ or #. If you do not specify any, the comment string is enclosed with the /* */ comment delimiters. If a comment for the specified statement already exists, it is deleted and replaced with the new comment.

statement—Statement to which you are attaching the comment.

Required Privilege Level

configure—To enter configuration mode, but other required privilege levels depend on where the statement is located in the configuration hierarchy.

Published: 2013-02-26