Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Example: Configuring Automatic Software Update on EX4200 Virtual Chassis Member Switches

 

The automatic software update feature automatically updates the Junos OS version on prospective member switches as they are added to a Virtual Chassis configuration of EX4200 switches so the new member switch immediately joins the EX4200 Virtual Chassis configuration and is put in the active state. If the software version on the new switch is not the same as the version running on the master, the master keeps the new switch in the inactive state. If you have not enabled the automatic software update feature, you will have to manually install the correct software version on each prospective member switch as it is added to the Virtual Chassis configuration.

This example describes how to configure the Virtual Chassis automatic software update feature:

Requirements

This example uses the following hardware and software components:

  • Three EX4200 switches

  • Junos OS Release 10.0 or later for EX Series switches

Before you begin, be sure you have:

  1. Ensured that two member switches are running the same version of Junos OS for EX Series switches so that they can form the initial Virtual Chassis configuration.
  2. Cabled and powered on those two switches to create the Virtual Chassis configuration. See Connecting a Virtual Chassis Cable to an EX4200 Switch.
  3. Ensured that you know the name or the URL of the software package to be used by the automatic software update feature.
  4. If you are going to perform an automatic software update, ensure that the version of Junos OS running on the Virtual Chassis is compatible with the version of Junos OS running on the prospective member switch for automatic software update. See Understanding Automatic Software Update on Virtual Chassis Member Switches.

Overview and Topology

For a standalone EX4200 switch to join an existing Virtual Chassis configuration, it must be running the same version of Junos OS that is running on the Virtual Chassis master. If the software version on the new switch is not the same as the version running on the master, the master keeps the new switch in the inactive state.

The topology for this example consists of three EX Series switches. Two of the switches are connected in a Virtual Chassis configuration and are therefore running the same version of Junos OS for EX Series switches. The third switch is a standalone switch that is running a different software version than the Virtual Chassis member switches. In this example, we will enable the automatic software update feature on the Virtual Chassis configuration and then add the third switch to the configuration. The master will detect the presence of the new switch, check the software version running on the new switch, and, because it is not the same version currently running on the master, will update the software version on the new switch and reboot the switch so that it can join the Virtual Chassis configuration and immediately be put in the active state.

Configuration

To configure automatic software update, perform this task:

Step-by-Step Procedure

To configure automatic software update:

  1. Enable automatic software update and configure the path to the software package:
    [edit]

    user@switch# set virtual-chassis auto-sw-update package-name /var/tmp/jinstall-ex-4200-10.0R1.1-domestic-signed.tgz

  2. Connect the new switch to the existing Virtual Chassis configuration, and power on the switch.

Results

Check the results of the configuration:

Verification

To verify that the software version on the new switch has been updated and that the switch has joined the Virtual Chassis configuration, perform this task:

Verifying That the Software Version Is Updated

Purpose

Verify that the new switch has joined the Virtual Chassis configuration.

Note

If the software version on the new switch had not been updated successfully, the master would not allow the switch to join the Virtual Chassis configuration.

Action

Issue the show virtual-chassis command.

Meaning

Because in the initial two-member Virtual Chassis configuration member 0 was the master and member 1 was the backup, the output shows that the new switch has been assigned member ID 2 and has been given the Linecard role. The Status field shows that member 2 is Prsnt, which means that it is in the active state.