< Home

display stack configuration

Function

The display stack configuration command displays stack configuration commands configured in a stack.

Format

display stack configuration [ slot slot-id ]

Parameters

Parameter Description Value

slot slot-id

Displays the stack commands configured on a stack member switch. slot-id specifies the stack ID of the member switch.

The value range depends on the device configuration.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

When a new device joins a stack, you can run this command to check which stack commands have been configured in the stack. You can then modify parameter settings in these commands and issue these commands to the new device in sequence. During command execution, you may need to restart the device or confirm your operation as prompted.

Precautions

  • This command is valid only when the stack function is enabled and has taken effect. By default, the stack function is enabled.

  • This command displays only the stack commands that have been executed. The displayed command configuration is not necessarily the running stack configuration, because most stack configuration commands take effect after a system restart.

Example

# Display the stack configuration commands that have been executed in a stack.

<HUAWEI> display stack configuration
*    : Invalid-configuration                                                                                                        
#    : Unsaved configuration                                                                                                  
---------------Configuration on slot 2 Begin---------------                                                                                                                                                                                
stack enable                                                                                                                        
stack slot 0 renumber 2                                                                                                             
stack slot 2 priority 150                                                                                                           
stack reserved-vlan 4093                                                                                                            
stack timer mac-address switch-delay 10                                                                                             
                                                                                                                                    
interface stack-port 2/1                                                                                                            
 *port interface XGigabitEthernet2/0/1 enable
                                                                                                                                   
interface stack-port 2/2                                                                                                            
 #port interface XGigabitEthernet2/0/4 enable                                                                                       
---------------Configuration on slot 2 End-----------------  
  • If a stack member port is marked with an asterisk (*), the current configuration does not take effect because of the following reasons:
    • The current configuration is the preconfiguration that has not taken effect.
    • The stack member port is located on a subcard that is not available.
    • When ports on the device panel and ports on subcards cannot be used together, one of the two port types is configured as stack member ports but not configured as the ports that take effect on the device, and the device is restarted.
  • If a stack member port is marked with a number sign (#), the current configuration is automatically generated for dedicated cable stacking but not saved to the flash memory using the save stack configuration or save command.
  • If a stack member port is marked with *#, the switch is using stack card stacking. In this case, the display stack configuration command displays the stack configuration that is automatically generated after dedicated stack cables are installed. To change stack card stacking to dedicated stack cable stacking, run the save stack configuration or save command to save the stack configuration to the flash memory and then restart the switch.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >