Related Documentation
- EX, J, M, MX, PTX, T Series
- Example: Using Comments in Junos OS Operational Mode Commands
Using the Junos OS CLI Comment Character # for Operational Mode Commands
The comment character in Junos OS enables you to copy operational mode commands that include comments from a file and paste them into the CLI. A pound sign (#) at the beginning of the command-line indicates a comment line. This is useful for describing frequently used operational mode commands; for example, a user’s work instructions on how to monitor the network. To add a comment to a command file, the first character of the line must be #. When you start a command with #, the rest of the line is disregarded by Junos OS.
To add comments in operational mode, start with a # and end with a new line (carriage return):
comment-string is the text of the comment. The comment text can be any length, but each comment line must begin with a #.
Related Documentation
- EX, J, M, MX, PTX, T Series
- Example: Using Comments in Junos OS Operational Mode Commands
Published: 2012-11-27
Related Documentation
- EX, J, M, MX, PTX, T Series
- Example: Using Comments in Junos OS Operational Mode Commands