Getting CLI help

Procedure
  • To show the available commands that you can execute in the current command context, enter the ? symbol.

    For example:

    switch# ?
      boot          Reboot all or part of the system
      checkpoint    Checkpoint information
    ...
    switch#

    The ? symbol does not display on the screen when you enter it.

    The commands that are available to you depend on your authority and the command context. In a given command context, you can list and execute the commands available in that context.

  • To show the available parameters for a command, enter the command followed by a space and then enter the ? symbol.

    For example:

    switch(config)# access-list ?
      all        All access-lists
      ip         Internet Protocol v4 (IPv4)
      ipv6       Internet Protocol v6 (IPv6)
      log-timer  Set ACL log timer length (frequency)
      mac        Ethernet MAC Protocol
    switch(config)# access-list

    After the CLI displays the information, it automatically displays the text you entered before you entered the ? symbol.

    If there is no <cr> symbol at the end the command help output, the command is not complete as displayed. You must specify one of the listed parameters.

    The <cr> symbol alone in the command help output indicates that there are no additional parameters and that you must press the enter key to complete the command. For example:

    switch# list ?
      <cr>
    switch# list 

    The <cr> symbol at the end of the command help output indicates that the parameters preceding the <cr> are optional and you can enter the command as is displayed. For example:

    switch# configure ?
      terminal    Configuration terminal (default)
      <cr>
    switch# configure 
  • To show information about a parameter for a command, enter the command and parameter followed by a space, then enter the ? symbol.

    For example:

    switch(config)# access-list log-timer ?
      <30-300>  Specify value (in seconds)
      default   Default value (300 seconds)
    switch(config)# access-list log-timer