Administrator Guide

Using the CLI 224
or a blank. In these cases, it may be necessary to enclose the entire string in
double quotes for the command line parser to properly interpret the
parameter.
Operating on Multiple Objects (Range)
The CLI allows the user to operate on the set of objects at the same time.
The guidelines are as follows for range operation:
Operations on objects with four or more instances support the range
operation, unless noted otherwise in the specific command
documentation.
•The
range
key word is used to identify the range of objects on which to
operate.
The range may be specified in the following manner:
(#-#) — a range from a particular instance to another instance
(inclusive). For example, 1/0/1-10 indicates that the operation applies to
the gigabit Ethernet ports 1 to 10 in slot 0 on unit 1. The number 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 non-consecutive instances. For example, (1/0/1,
1/0/1,1/0/3, 1/0/5) indicates that the operation applies to the gigabit
Ethernet ports 1, 3, and 5 on unit 1.
(#, #-#, #) — ranges and non-consecutive instances listed together. For
example, (1/0/1, 1/0/3-5, 1/0/7) indicates that the operation applies to the
gigabit Ethernet ports 1, 3, 4, 5, and 7 on unit 1.
NOTE: Each port must be a fully qualified port identifier in the format
unit
/
slot
/
port
. See Interface Naming Conventions on page 226.
To specify a range of LAGs, use the following command:
interface range port-channel
1-128
The port channel number to the left of the hyphen must alway be less than
or equal to the number to the right of the hyphen (e.g., interface range
po10-1 is not a valid range).
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.
2CSNXXX_SWUM204.book Page 224 Monday, January 25, 2016 1:25 PM