Command syntax

This topic explains how to read command syntax and describes the fields that each command reference contains.

A command is one or more words that might be followed by one or more parameters. Parameters can be required or optional values.

Some commands, such as show version and clear arp-cache, do not require parameters. Other commands, such as show interfaces id [status | protected], require that you supply a value for the id parameter. You must type the parameter values in a specific order, and optional parameters follow required parameters. The following example describes the show interfaces id [status | protected] command syntax:

CODE
show interfaces id [status | protected]
  • show interfaces is the command name.
  • id is the parameter and represents a required value that you must enter after you type the command keywords.
  • status and protected are optional and mutually exclusive keywords, so you are not required to enter a value in place of the keyword.

This manual lists each command by the command name and provides a brief description of the command. Each command reference also contains the following information:

  • Syntax: The order of the command, the required and optional keywords, and the required and optional parameters.
  • Parameter: The keywords and parameters with a description. The show commands also include a description of the information that the command shows.
  • Default: The default value, if any, of a configurable setting on the device.
  • Mode: The command mode you must be in to access the command.
  • Usage: The usage and purpose of the command.
  • Example: One or more command examples.