Advanced CLI and Other Cool Stuff
There are lots of other fantastic configuration options that can be used, and an explanation of all of them would require another book. The JUNOS documentation contains many timesaving tips, and JUNOS Cookbook by Aviva Garrett (O’Reilly) is a great resource, too. To whet your appetite, here are three JUNOS software CLI tips.
SOS
If JUNOS is causing you problems, just ask it for help. You can do
this in a few ways. Most people are instinctively aware of the option to
use the question mark (?
) to
display possible command completions:
[edit]
lab@Rum# set protocols rstp ?
Possible completions:
<[Enter]> Execute this command
+ apply-groups Groups from which to inherit configuration data
+ apply-groups-except Don't inherit configuration data from these groups
bridge-priority Priority of the bridge (in increments of 4k - 0,4k,8k,..60k)
disable Disable STP
forward-delay Time spent in listening or learning state (4..30 seconds)
hello-time Time interval between configuration BPDUs (1..10 seconds)
> interface
max-age Maximum age of received protocol bpdu (6..40 seconds)
> traceoptions Tracing options for debugging protocol operation
| Pipe through a command
[edit]
lab@Rum# set protocols rstp
Note that the >
character
indicates a directory that contains subdirectories, and the +
indicates a command that takes multiple
arguments; no symbol means the command takes a single argument or is in
fact the end statement of a command.
The help
command is a secret resource ...
Get JUNOS Enterprise Switching now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.