stack priority

Syntax

CODE
stack <unit-id> priority <0-15>
no stack <unit-id> priority

Parameter

unit-id: The stack unit number. The valid range is 1 to 6.

priority <0-15>: The management election priority for the specified unit. The valid range is 0 to 15.

Default

The default priority is 0 for all units.

Mode

Privileged EXEC

Usage

Use this command to set the management election priority for a stack unit. When a management election occurs, the unit with the highest priority value is elected as the Management unit. If two units have the same priority, the unit with the lower MAC address is elected.

The priority setting takes effect at the next management election or after the stack is rebooted.

Use the no form of this command to reset the priority for the specified unit to the default value of 0.

Example

This example shows how to set different priority levels for multiple stack members:

CODE
Switch# stack 1 priority 15
Switch# stack 2 priority 13
Switch# stack 3 priority 5

This example shows how to reset the priority for unit 1 to the default value:

CODE
Switch(config)# no stack 1 priority

Verify the priority settings for all stack members:

CODE
Switch# show stack 1
Switch Unit ID          : 1
Management Status 	   	 : Management
Board Model 		   	 : GS728TXv3
Plugged-in Board Model  : GS728TXv3
MAC Address 		   	 : 28:94:01:9B:D3:1E
Serial Number 		 : 3S625120A0BB5
Firmware Version 	   	 : 1.0.0.1
Configured Priority  	 : 0
Operational Priority  	 : 0
Configured Stack Ports	 : 1/0/25
Operational Stack Ports : 1/0/25
Configured Unit ID 	 : Auto
CODE
Switch# show stack 2
Switch Unit ID          : 2
Management Status       : Stack Member
Board Model             : GS728TXv3
Plugged-in Board Model  : GS728TXv3
MAC Address             : 28:94:01:9B:D3:2E
Serial Number           : 3S62CC20A0DD5
Firmware Version        : 1.0.0.1
Configured Priority     : 13
Operational Priority    : 0
Configured Stack Ports  : 1/0/25-1/0/26
Operational Stack Ports : 1/0/25-1/0/26
Configured Unit ID      : Auto
CODE
Switch# show stack 3
Switch Unit ID          : 3
Management Status       : Stack Member
Board Model             : GS728TXv3
Plugged-in Board Model  : GS728TXv3
MAC Address             : 28:94:01:9B:D3:3E
Serial Number           : 3S62EE20A0DD5
Firmware Version        : 1.0.0.1
Configured Priority     : 5
Operational Priority    : 0
Configured Stack Ports  : 1/0/26
Operational Stack Ports : 1/0/26
Configured Unit ID      : Auto