Administrator Guide

Using the CLI 233
to the left of the hyphen must always be less than or equal to the number
to the right of the hyphen, e.g. interface range Gi1/0/10-1 is not valid.
(#, #, #) — a list of interfaces. For example, (1/0/1, 1/0/1,1/0/3, 1/0/5)
indicates that the operation applies to the
Ethernet
interfaces 1, 3, and 5
on unit 1. The interfaces may or may not be consecutive, nor must the
interfaces be of the same type.
(#, #-#, #) — ranges and non-consecutive interfaces listed together. For
example, (1/0/1, 1/0/3-5, 1/0/7) indicates that the operation applies to the
Ethernet
interfaces 1, 3, 4, 5, and 7 on unit 1.
NOTE: Each Ethernet interface must be a fully qualified interface identifier
in the format unit/slot/port. See
Interface Naming Conventions
.
Port channels and VLANs are supported in ranges.
No spaces are allowed anywhere in a range parameter, e.g. Gi1/0/1 -2 is not
accepted, nor is Gi1/0/2, Gi1/0/4. Use Gi1/0/1-2 and Gi/1/0/2,Gi1/0/4
respectively.
When operating on a range of interfaces, the CLI implementation hides
the parameters that may not be configured in a range (for example,
parameters that must be uniquely configured for each instance).
The CLI uses best effort when operating on a list of objects. If the user
requests an operation on a list of objects, the CLI attempts to execute the
operation on as many objects in the list as possible even if failure occurs for
some of the items in the list. The CLI provides the user with a detailed list
of all failures, listing the objects and the reasons for the failures.
Some parameters must be configured individually for each port or interface.
Examples
Example 1 shows the various forms of interface notation that can be entered
in the CLI. Examples 2 and 3 show various forms of CLI output using
shorthand interface notation.
Example #1
gigabitethernet 1/0/1
gigabitethernet1/0/1 (there is no space)
gi 1/0/1
gi1/0/1 (there is no space)
port-channel 1
vlan 5