Commands and Syntax
7
U
SING
THE
SET
C
OMMAND
The “set” command allows you to set the property values of existing instances of a class and has the following syntax
set
unnamed-class
[ with
qualifier-property qualifier-value
... to ]
property value . . .
The first argument is an unnamed class in the configuration.
After this is an optional qualifier that restricts the set to only some instances. For singleton classes (with only one instance)
no qualifier is needed. If there is a qualifier, it starts with the keyword
with
, then has a sequence of one or more
qualifier-
property
qualifier-value pairs, and ends with the keyword
to
. If these are included, then only instances whose present value
of
qualifier-property is qualifier-value will be set. The qualifier-value arguments cannot contain spaces. Therefore, you
cannot select instances whose desired
qualifier-value has a space in it.
The rest of the command line contains
property-value pairs.
set
named-class instance
| all [ with
qualifier-property qualifier-value ...
to ]
property
value...
The first argument is either a named class in the configuration.
The next argument is either the name of the
instance to set, or the keyword
all
, which indicates that all instances should be
set. Classes with multiple instances can be set consecutively in the same command line as shown in Example 4 below. The
qualifier-value arguments cannot contain spaces.
The following examples show
set
commands.
1.
set interface wlan0 ssid “Vicky's AP
”
2.
set radio all beacon-interval 200
3.
set tx-queue wlan0 with queue data0 to aifs 3
4.
set tx-queue wlan0 with queue data0 to aifs 7 cwmin 15 cwmax 1024 burst 0
5.
set vap vap2 with radio wlan0 to vlan-id 123
Note:
For information on interfaces used in this example (such as wlan0 or vap2) see
“Interface Naming
Conventions” on page 11
.
R
ev
ie
w
C
op
y