Knowledge Search


×
 

JUNOS: How to quickly find a CLI command if the exact syntax is not known?

  [KB9615] Show Article Properties


Summary:
How to quickly find a JUNOS CLI command if the exact syntax is not known.
Symptoms:

Solution:
When the exact syntax of a configuration command is not known, the CLI command help apropos can be used to obtain a list of all configuration-mode commands that contain a particular text string.  In the following example, the help apropos command is used to find all the commands related to ike.

[edit]
georg@ankara-re0# help apropos ike
set security traceoptions flag ike
    Trace IKE module processing
set security ike
    IKE configuration
set security ike proposal
    Define an IKE proposal
set security ike proposal <name>
    Name of the IKE proposal
set security ike proposal <name> description <description>
    Text description of IKE proposal
.
.
.
set services ipsec-vpn ike policy <name> proposals
    Define the set of IKE proposals
set services ipsec-vpn traceoptions flag ike
    Trace IKE module processing

[edit]
georg@ankara-re0#

In JUNOS releases prior to JUNOS 8.0R1, the help apropos command is available only in configuration mode.  Beginning with JUNOS 8.0R1, the command has been made available in operational mode.

Related Links: