Command syntax
CLI commands follow a set syntax of keywords and required and optional parameters, which you must type in a specific order.
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 nsf and clear vlan, do not require parameters. Other commands, such as route-map map-tag [permit | deny] [sequence-number], require that you supply a value after the command. You must type the parameter values in a specific order, and optional parameters follow required parameters. The following example describes the route-map command syntax:
| Format | route-map map-tag [permit | deny] [sequence-number] |
- route-map is the command name.
- map-tag is a parameter (also referred to as an argument) and represents a required value. You must type a value for map-tag after typing the route-map command name.
- permit and deny are optional keywords. They are mutually exclusive, so you can type only one. You are not required to enter a value in place of the keyword.
- sequence-number is an optional parameter and represents a required value. You must type a value for sequence-number.
This command line reference manual lists each command by the command name and provides a brief description of the command. Each command reference also contains the following information:
- Format shows the command keywords and the required and optional parameters.
- Mode identifies the command mode you must be in to access the command.
- Default shows the default value, if any, of a configurable setting on the device.
The show commands also contain a description of the information that the command output displays.