The slot command pre-configures a stack ID or changes the pre-configured device model.
The undo slot command deletes the pre-configured stack ID or changes the pre-configured device model.
By default, the pre-configured stack ID is 0.
This command can only be executed on a parent switch.
slot slot-id1 replace-model model-name
undo slot slot-id1 replace-model
slot slot-id2 [ to slot-id3 ] [ replace-model model-name ]
undo slot slot-id2 [ to slot-id3 ] [ replace-model ]
Parameter | Description | Value |
---|---|---|
slot-id1 | Specifies the pre-configured stack ID. |
The value is 0. |
slot-id2 [ to slot-id3 ] | Specifies the pre-configured stack ID. slot-id3 must be larger than slot-id2. |
The value is an integer that ranging from 1 to 4. |
replace-model model-name | Specifies the device model of which the stack ID needs to be pre-configured. |
The value range depends on the device configuration. |
Usage Scenario
When an AS is a stack of multiple member switches, the system pre-configures only stack ID 0 by default. You can only pre-configure services for the member switch with stack ID 0. Before pre-configuring services for another member switch, pre-configure a stack ID for the member switch.
The pre-configured stack ID does not affect the actual stack ID. For example, the pre-configured stack ID is 0 (default value), but the actual stack IDs are 0 and 2. The actual stack IDs remain 0 and 2 except that no services are configured on the device with stack ID 2.
An AS can be a stack of the same device series but different device models. If the stack contains different device models, you need to specify the replace-model parameter to change the device model that is different from the other device models in the stack to the actual access device model. If you do not specify the device model of a specified member, by default, the device model of this member is consistent with the pre-configured AS type.
Precautions
If the AS does not support stacking, the slot slot-id command configuration takes effect on the parent only when slot 0 is configured as the stack ID.
Changing the device models of online devices in a stack is not allowed.
# Pre-configure a stack ID.
<HUAWEI> system-view [HUAWEI] uni-mng [HUAWEI-um] as name as1 [HUAWEI-um-as-as1] slot 1 to 4
# Change the device model of the switch with stack ID 2 in the AS as1 to S5720-28X-SI-AC.
<HUAWEI> system-view [HUAWEI] uni-mng [HUAWEI-um] as name as1 [HUAWEI-um-as-as1] slot 2 replace-model S5720-28X-SI-AC