Technical Knowledge Base

Switch Replacement

Pre-work on existing switch

  1. Capture the version
show version
  1. Save Config for replacement switch
    1. Save the running config to the startup
    2. copy running-config startup-config
    3. Copy the start up-configuration to a file server using any of the available methods on the switch (FTP, TFTP, SFTP, and SCP).
      1. copy startup-config scp://<user@host>/<switch>.config
      2. Alternatively with the log being captured
      3. show running-config
    4. Capture port assignments
    5. show flogi database
  2. Unrack switch, move over all SFPs to the replacement switch

Post replacement

  1. Rack switch
  2. Connect to the replacement switch, do not run setup script if asked
  3. Erase switch configuration
write erase
  1. Reload the switch
reload
  1. Press CTRL+Z to ignore factory default prompt
config terminal

../../Work/Images/Cisco/9124/9124_config.png
6. Capture wwn this will be used if interface based zoning was done

show wwn switch
  1. Create a backup of the config file
  2. Edit the config to be used, remove the lines that contain the SNMP user accounts (snmp-server user .....)
  3. If using interface zoning, replace switch wwn (swwn) in the file with the replacement switches wwn captured in step 6.
  4. If IVR was configured switch wwn needs to be updated, search ivr or switch-wwn. Replace swwn with swwn captured in step 6.
  5. Save and Exit the config file
  6. Apply the modified text file to the switch
copy scp://<user@host/<config file>.config running-config

If the copy is successful you will see the commands being executed with a progress bar
Dragging the config file and dropping it into the putty session might also work

  1. Save the new config
copy running-config startup-config
  1. Connect all fiber cables to their previous ports, can use Flogi database to verify
  2. Customer can create all SNMP users again

Reference: MohanKumar: How to Replace the CISCO MDS 9124 San Switch chassis