Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Using Command Completion in Configuration Mode

    CLI command completion also applies to commands in configuration mode and to configuration statements.

    To display all possible commands or statements:

    • Type the partial string followed immediately by a question mark; to complete a command or statement that you have partially typed, press the Spacebar.

    Command completion also applies to identifiers, with one slight difference.

    To display all possible identifiers:

    • Type a partial string followed immediately by a question mark.
    • To complete an identifier, you must press the Tab key.

    This scheme allows you to enter identifiers with similar names; then press the Spacebar when you are done typing the identifier name.

    Examples: Using Command Completion in Configuration Mode

    List the configuration mode commands:

    [edit]
    user@host# ?
    Possible completions:
      commit               Commit a set of changes
      delete               Delete a configuration statement or identifier
      edit                 Specify edit level in hierarchy
      exit                 Exit from this level
      help                 Display help about commands and statements
      history              Display command history
      insert               Insert an identifier
      load                 Load configuration from an ASCII file
      rename               Rename a statement or identifier
      rollback             Discard current set of changes
      run                  Run an operational mode command
      save                 Save configuration to a file
      set                  Set a configuration property
      show                 Display configuration information
      top                  Return to top level of configuration mode
      up                   Move up one level in hierarchy

    List all the statements available at the [edit] hierarchy level:

    [edit]
    user@host# edit ? 
    Possible completions:
    > interfaces           Interfaces on the C Series Controller
    > policies             Policy configuration
    > redirect-server      Redirect server properties
    > routing-options      Protocol-independent routing option configuration
    > services             Service configuration
    > shared               Configure a shared configuration
    > slot                 Component configuration
    > snmp                 SNMP agent
    > subscribers          Subscriber and subscription configuration
    > system               System parameters

    List all the statements available at the [edit system] hierarchy level:

    [edit]
    user@host# edit system ?
    Possible completions:
      <[Enter]>            Execute this command
    > ldap                 LDAP properties
    > login                Login properties
    > ntp                  NTP configuration
    > radius-server        RADIUS server configuration
    > services             System services configuration
    > syslog               System log configuration
    > tacplus-server       TACACS+ server configuration
      |                    Pipe through a command

    List all commands that start with a particular letter or string:

    [edit]
    user@host# edit system l?
    Possible completions:
    > ldap                 LDAP properties
    > login                Login properties
    user@host# edit system l

    List all configured Ethernet interfaces:

    [edit]
    user@host# edit interfaces et?
    Possible completions:
      <name>               Interface name
      eth0
      eth1
      eth2
      eth3
    user@host# edit interfaces et

    Display a list of all configured interfaces:

    user@host# show interfaces ?
    Possible completions:
      <[Enter]>            Execute this command
      <name>               Interface name
      eth0                 Interface name
      lo                   Interface name
      |                    Pipe through a command
    user@host# show interfaces 

    Modified: 2012-07-20