cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
11793
Views
30
Helpful
5
Replies
Highlighted
Participant

Factory reset APIC and nodes

I ran into an issue where the APIC/nodes were using an old Infra VLAN. Tried to reset the devices, but it still kept coming back with the old Infra VLAN. 

 On version 3.x what is the correct procedure for both APIC and nodes to factory reset the devices to wipe any existing Infra VLAN info?

 I believe we tried "acidiag touch clean", but that did not help wipe the Infra VLAN info. Where in the documentation does it mention the steps to factory reset in version 3.x? I was only able something in the troubleshooting guide here - https://www.cisco.com/c/en/us/td/docs/switches/datacenter/aci/apic/sw/1-x/troubleshooting/b_APIC_Troubleshooting/b_APIC_Troubleshooting_chapter_01001.html but looks like this is for version 1.x.

 

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Collaborator

Re: Factory reset APIC and nodes

 Hi Manuel,

 

The document you referred to is still relevant for v3.x.  Last week I did three successul complete resets using the method below:  My method requires that you have OOB management or console access to each switch and CIMC management or console access to each APIC.

Step 1: Wipe the switches.

On each leaf and spine switch, run the setup-clean-config.sh script. DO NOT reload the switch yet - if you do, the switch will re-learn its config from the APIC and you'll need to return to Step 1 again later.

I was able to power down each switch after the setup-clean-config.sh script had run, however this is not strictly recessary, but it does make the process more failsafe. 

Spine201# setup-clean-config.sh
In progress
In progress
In progress
In progress
In progress
Done
Spine201#

Step 2: Wipe the APICs.

Run the following commands on each APIC:

 

apic# acidiag touch clean
This command will wipe out this device. Proceed? [y/N] y
apic# acidiag touch setup
This command will reset the device configuration, Proceed? [y/N] y

 

DO not reload the APICs until the above has been completed on each APIC, otherwise if one APIC reloads before you have reloaded the others, it may re-join the cluster and re-learn its configuration.

Step 3: Reload the APICs.

Run the following command simultaneously (or within a couple of minutes) on each APIC: 

apic# acidiag reboot
This command will restart the this device, Proceed? [y/N] y

Step 4: Reload the Switches.

While the APICs are reloading, you can run the reload command on the switches, but be prepared for a lot of noise from the spines.  In my case where I was able to power off the switches, I did not power on the switches until I had completed the initial setup on each APIC, and then I powered them on in the order I wanted them to be discovered - that way I KNEW which switch was being discovered in the fabric discovery process.

Step 5: Reconfigure the APICs.

When the APICs have reloaded, go through the initial setup on each one, making sure you are consistent with the values you use for the infrastructure VLAN and TEP pools.

I hope this helps


Don't forget to mark answers as correct if it solves your problem. This helps others find the correct answer if they search for the same problem


RedNectar
aka Chris Welsh


Don't forget to mark answers as correct if it solves your problem. This helps others find the correct answer if they search for the same problem

View solution in original post

5 REPLIES 5
Highlighted
Beginner

Re: Factory reset APIC and nodes

To remove all config and wipe the APIC, login to console with monitor and keyboard and use:

acidiag touch setup

acidiag reboot

If you do this on all three APICs you will have a completely fresh environment to work with

Highlighted
Collaborator

Re: Factory reset APIC and nodes

 Hi Manuel,

 

The document you referred to is still relevant for v3.x.  Last week I did three successul complete resets using the method below:  My method requires that you have OOB management or console access to each switch and CIMC management or console access to each APIC.

Step 1: Wipe the switches.

On each leaf and spine switch, run the setup-clean-config.sh script. DO NOT reload the switch yet - if you do, the switch will re-learn its config from the APIC and you'll need to return to Step 1 again later.

I was able to power down each switch after the setup-clean-config.sh script had run, however this is not strictly recessary, but it does make the process more failsafe. 

Spine201# setup-clean-config.sh
In progress
In progress
In progress
In progress
In progress
Done
Spine201#

Step 2: Wipe the APICs.

Run the following commands on each APIC:

 

apic# acidiag touch clean
This command will wipe out this device. Proceed? [y/N] y
apic# acidiag touch setup
This command will reset the device configuration, Proceed? [y/N] y

 

DO not reload the APICs until the above has been completed on each APIC, otherwise if one APIC reloads before you have reloaded the others, it may re-join the cluster and re-learn its configuration.

Step 3: Reload the APICs.

Run the following command simultaneously (or within a couple of minutes) on each APIC: 

apic# acidiag reboot
This command will restart the this device, Proceed? [y/N] y

Step 4: Reload the Switches.

While the APICs are reloading, you can run the reload command on the switches, but be prepared for a lot of noise from the spines.  In my case where I was able to power off the switches, I did not power on the switches until I had completed the initial setup on each APIC, and then I powered them on in the order I wanted them to be discovered - that way I KNEW which switch was being discovered in the fabric discovery process.

Step 5: Reconfigure the APICs.

When the APICs have reloaded, go through the initial setup on each one, making sure you are consistent with the values you use for the infrastructure VLAN and TEP pools.

I hope this helps


Don't forget to mark answers as correct if it solves your problem. This helps others find the correct answer if they search for the same problem


RedNectar
aka Chris Welsh


Don't forget to mark answers as correct if it solves your problem. This helps others find the correct answer if they search for the same problem

View solution in original post

Highlighted
Cisco Employee

Re: Factory reset APIC and nodes

Thanks !

 

it is quiete importan reload times make sure any switch syncs with old state from another.

Highlighted

Re: Factory reset APIC and nodes

for factory reset command is this

setup-clean-config.sh
Highlighted
Collaborator

Re: Factory reset APIC and nodes

Not quite sure why you are repeating information straight from the solution above. Was Step 1 not written clearly enough?

RedNectar
aka Chris Welsh


Don't forget to mark answers as correct if it solves your problem. This helps others find the correct answer if they search for the same problem