When you replace an Arista top-of-rack (ToR) or inter-rack switch in a rack, you must replace it with a Arista switch that has the same identical specifications as the one you are replacing. The replacement ToR or inter-rack switch must be the same model and have the same version of the Arista switch operating system as the one it is replacing.

For a list of the Arista switch models that are supported for use as a ToR or inter-rack switch in this release, see VMware Cloud Foundation Compatibility Guide.

The goal of this procedure is to restore the previously taken backup configuration of the working state of the system on to the replacement ToR or inter-rack switch.

Prerequisites

  • Verify your Cloud Foundation environment is operational. You can do this by verifying that the workload domains you have in the environment are running.
  • Verify you have the following items:
    • The backup file of the to-be-replaced Arista ToR or switch's configuration. See Retrieve Backup File for Failed Switch.
    • The credentials for the management switch of the rack which has the ToR or inter-rack switch you are replacing. Steps in the replacement procedure require copying files to and from the management switch. For steps on how to look up this password, see Look Up Account Credentials.
    • A replacement Arista switch of the same model as the Arista switch you are replacing.
    • A diagram or photo of the to-be-replaced switch's wiring, so that you can refer to it after you have disconnected the switch. See Rack Wiring.
  • Verify the replacement switch has the same version of the Arista OS installed on it that is supported for use in this Cloud Foundation release. For the Arista OS version that is supported in this release, see the Release Notes.

Procedure

  1. Copy the to-be-replaced switch's backup configuration file to its rack's management switch's /var/tmp directory.
    scp backupFile.gz cumulus@192.168.100.1:/var/tmp
    As an example, when replacing the Arista ToR switch with IP address 192.168.0.20, you copy the backup configuration file named 192.168.0.20-arista-running-config.gz to the management switch in that ToR switch's rack.
  2. Disconnect the switch you are replacing and remove it from the rack.
  3. Install the replacement switch into the rack and wire it according to the same wiring connections the previous one had.
  4. Boot the newly installed switch and cancel the Zero Touch Provisioning (ZTP) mode.
    AristaSwitch# zerotouch cancel
  5. Log in to the replacement switch, using the default credentials that came with your replacement switch.
  6. Using the original switch's IP address, configure that same IP address on the new switch on the interface named management1.
    As an example, when replacing a ToR switch that has IP address 192.168.0.20, you configure the management1 interface as:
    interface management1
      ip address 192.168.0.20/24
    When replacing a inter-rack switch that has IP address 192.168.0.31, you configure the management1 interface as:
    interface management1
      ip address 192.168.0.31/24
  7. Verify the newly installed switch can reach the management switch (at IP 192.168.100.1) by using the ping command.
    AristaSwitch# ping 192.168.100.1
    PING 192.168.100.1 (192.168.100.1): 56 data bytes
    64 bytes from 192.168.100.1: icmp seq=0 ttl=63 time=1.574 ms
    ...
  8. Copy the previous switch's backup configuration file to the newly installed switch from the location on the rack's management switch where you copied it in Step 1.
    As an example, when replacing the Arista ToR switch that has the backup configuration file named backupFile.gz that was copied to the /var/tmp location on the rack's management switch at IP address 192.168.100.1:
    AristaSwitch#copy scp:backupFile.gz flash:/ backupFile.gz
    cumulus@192.168.100.1's password: *******
    192.168.0.20-arista-running-config.gz       100% 1761 1.7KB/s 00:00
    Copy completed successfully.
    AristaSwitch#
  9. Use the dir flash command to verify the backup configuration file was copied to the flash.
    AristaSwitch#dir flash:
  10. Go into bash and decompress the copied backup configuration file .
    Using the example from the previous step:
    AristaSwitch# bash
    Arista Networks EOS shell
    [admin@ AristaSwitch ~]$ cd /mnt/flash
    [admin@ AristaSwitch flash]$ gunzip backupFile.gz
    
    As a result of this step, the extension .gz is removed from the file.
  11. Exit out of bash.
    [admin@ AristaSwitch flash]$ exit
    AristaSwitch#
  12. Copy the backup configuration file that resulted from the decompression to the switch's startup configuration.
    Using the example from the previous step:
    AristaSwitch# copy flash: backupFile
  13. Copy the switch's startup configuration to its running configuration.
    AristaSwitch# copy startup-config running-config
  14. SSH to the SDDC Manager VM.
  15. Navigate to /opt/vmware/sddc-support/fru-scripts/fru_switch_2.3.py.
  16. Run the following API calls to ensure that a 200 OK response is received.
    # curl -X GET http://localhost:8448/api/1.0/hms/switches/switchId
     # curl -X GET http://localhost:8080/hms-local/api/1.0/hms/switches/switchId

Results

The replacement switch is in place and has the backup configuration from the switch it replaced.