Unconfiguring a Stack

The stack unconfigure command is a runtime command that returns stack units to their pre-stacking state. When a stack unit is unconfigured, its stacking flash is removed, and its startup-config.txt flash file is recovered. These actions apply to all units to which this command is applied, regardless of the role of the unit in the stack.

When the stack unconfigure command is applied to the active controller, it removes stack enable from the runtime configuration but not from the startup configuration. If you want to remove the stack enable command from the active controller permanently, you must enter the write memory command after the stack unconfigure command.

When the stack unconfigure command is applied to the standby controller or a stack member (besides the active controller), it removes stack enable from the recovered startup-config.txt file and resets the unit.

Note: When a stack member becomes a standalone unit after the stack unconfigure command, it could become a clean unit if it had no startup configuration flash. When a clean unit matches the active controller’s static configuration, the active controller integrates the clean unit into the stack. Thus, the standalone unit is reloaded to be a member of the stack. Users can avoid this problem by disconnecting the member unit from the stack and issuing the stack unconfigure me command on the unit to change it to a standalone unit.

To remove the configuration from the current stack unit, enter the following command.

device# stack unconfigure me

To remove the configuration from the current unit, including the startup configuration, so that the unit reboots as a clean unit, enter the following unit on the stack member console.

device# stack unconfigure clean
Note: The stack unconfigure clean command can be entered only on the stack member console.

To remove the configuration from the entire stack, enter the following command on the active controller for the stack.

device# stack unconfigure all

To remove the configuration from a specific stack unit, on the active controller for the stack, enter the stack unconfigure command followed by the stack unit ID as shown in the following example.

device# stack unconfigure 3

The example unconfigures stack unit 3.

Note: The stack unconfigure me command can be entered from any unit; however, stack unconfigure all and stack unconfigure stack-unit commands can be issued only on the active controller.

The following example shows a session where stack unit 3 is unconfigured.

ICX8200-24P Router# show stack
T=21h33m16.8: alone: standalone, D: dynamic cfg, S: static
ID   Type          Role    Mac Address    Pri State   Comment
1  S ICX8200-24P   active  c0c5.2082.c774 255 local   Ready
2  S ICX8200-24    standby c0c5.2082.cbca 128 remote  Ready
3  S ICX8200-48PF  member  c0c5.207e.9a80   0 remote  Ready

    active       standby
     +---+        +---+        +---+
     | 1 |2/1==2/1| 2 |2/3==2/3| 3 |
     +---+        +---+        +---+
Standby u2 - protocols ready, can failover
Current stack management MAC is c0c5.2082.c774

ICX8200-24P Router# stack unconfigure 3
Will recover pre-stacking startup config of this unit, and reset it. Are you sure? (enter 'y' or 'n'): y
Stack 3 deletes stack bootup flash and recover startup-config from .old
ICX8200-24P Router#
ICX8200-24P Router# show stack
T=21h33m59.0: alone: standalone, D: dynamic cfg, S: static
ID   Type          Role    Mac Address    Pri State   Comment
1  S ICX8200-24P   active  c0c5.2082.c774 255 local   Ready
2  S ICX8200-24    standby c0c5.2082.cbca 128 remote  Ready
3  S ICX8200-48PF  member  0000.0000.0000   0 reserve

    active       standby
     +---+        +---+
     | 1 |2/1==2/1| 2 |2/3
     +---+        +---+
Will assign standby in 54 sec due to all ready

Standby u2 - protocols ready, can failover
Current stack management MAC is c0c5.2082.c774

When the stack unconfigure 3 command is issued, stack unit 3 recovers the startup-config.txt from the startup-config.old configuration file that was saved when this unit downloaded its configuration from the active controller. As the output shows, stack member 3 has been removed from the stack, and ID 3 is reserved for a replacement unit.