Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Recovering or Installing System Software on a C Series Controller by Using the USB Storage Device Supplied by Juniper Networks

 

You can recover system software by using the USB storage device supplied with the C Series Controller.

Note
  • Starting from SRC Release 4.5, the USB storage device supplied with the C Series Controller is a read/write or read-only device. Prior to SRC Release 4.5, Juniper Networks shipped the C Series Controller with only a read-only USB storage device that contains a copy of the system software.

  • Using the read-only USB storage device supplied by Juniper Networks, you can only recover the system software; whereas, by using the read/write USB storage device, you can create an installation medium and back up the system configuration.

  • To determine whether the USB storage device you received from Juniper Networks is a read-only or read/write device, contact Juniper Networks Technical Assistance Center (JTAC).

Using the read/write USB storage device supplied by Juniper Networks, you can create an installation medium that can be updated to the desired release and used to reimage a C Series Controller. You need to download the image file from the Juniper Networks Support website onto your Linux workstation, uncompress the software, and then copy the software image onto your Juniper Networks external USB (4-gigabyte) storage device.

Caution

When you install the SRC software from the supplied USB storage device, all system software, including the operating system, is installed, and the system hard drives are partitioned. As a result, any data, including data previously in the snapshot partition (if you do not select the retainsnapshot option at the boot prompt during the installation), is lost.

You can back up the system configuration to the read/write USB storage device supplied by Juniper Networks or to an external system (such as a computer running a Linux or Windows operating system, or a USB device) by using the save and file copy commands. The term “USB device” in this case refers to the customer-supplied read/write USB storage device. This should not be confused with the “USB storage device” supplied by Juniper Networks with each C Series Controller. You can also recover the configuration by using the load command. For information about managing the SRC configuration, see the SRC PE CLI User Guide. For information about how to specify a filename, see Specifying Filenames and URLs.

To create an installation medium by using the read/write USB storage device:

  1. In a Web browser, go to https://www.juniper.net/support/products/src/.

    The SRC page appears.

  2. Click the Software tab and select the image file that you want to download.

    A login screen appears.

  3. Enter your username and password and press Enter.
  4. Log in and save the image file to your Linux workstation.
  5. Uncompress the image file on your Linux workstation.
    gunzip name.*img.gz
  6. Insert the read/write USB (4-gigabyte) storage device supplied by Juniper Networks into your Linux workstation.
  7. Determine the system device of the USB storage device by using the dmesg | less command.
    dmesg | less
    Note

    In this case, sdb is the system device of the USB storage device.

  8. Copy the software image that you just downloaded to your Linux workstation onto your external USB storage device by using the dd command.
    dd if=name.img of=/dev/usb-device

    In this case,

    dd if=name.img of=/dev/sdb
  9. Remove the USB storage device from the Linux workstation.

To boot the system from the supplied USB storage device and install the SRC software on a C Series Controller:

Caution

After you complete this procedure, remember to disconnect the USB storage device. Failure to do so can result in the loss of configuration and data if the system loses power or is rebooted.

  1. Plug the USB storage device into the USB port on the C Series Controller.
  2. Connect a console terminal to the C Series Controller.

    See your C Series Controller Hardware Guide.

  3. Power on the system.

    The controller starts up from the USB storage device and prints the following message.

  4. At the boot prompt, enter retainsnapshot and press the Enter key to retain the snapshot of the system software stored in the snapshot partition. If you do not want to retain the snapshot, press the Enter key, or follow the instructions on the screen to cancel the operation.
  5. When the software installation is complete, unplug the USB storage device from the USB port and reboot the C Series Controller.Note

    CentOS 7 and later versions use different schemes for naming network interfaces, for example, enpX, ensX, and enoX. SRC works only with the traditional naming ethX. So, it is mandatory to rename the interfaces from ensX, enpX, or enoX to ethX and persist interface names with the corresponding MAC addresses. After the software installation is complete, the interface renaming script is executed for renaming the interfaces.

  6. After the interface renaming script is executed, configure the corresponding MAC address for each network interface (for example, eth0, eth1). After verifying the configuration of MAC addresses, reboot the C Series Controller for the changes to take effect.
  7. After the C Series Controller reboots and the software installation is complete, set up the initial configuration.

    See your C Series Controller Hardware Guide.

    Note

    The default username and password for grub menu are “root” and “password”, respectively. You can change the default password by executing the grub2-setpassword command in shell mode.