boot system
boot system [primary | secondary | serviceos]
Description
Reboots all modules on the switch. By default, the configured default operating system image is used. Optional parameters enable you to specify which system image to use for the reboot operation and for future reboot operations.
Parameter |
Description |
---|---|
primary |
Selects the primary operating system image for this reboot and sets the configured default operating system image to primary for future reboots. |
secondary |
Selects the secondary operating system image for this reboot and sets the configured default operating system image to secondary for future reboots. |
serviceos |
Selects the service operating system for this reboot. Does not change the configured default operating system image. The service operating system acts as a standalone bootloader and recovery OS for switches running the AOS-CX operating system and is used in rare cases when troubleshooting a switch. |
Usage
This command reboots the entire system. If you do not select one of the optional parameters, the system reboots from the configured default boot image.
You can use the show images command to show information about the primary and secondary system images.
Choosing one of the optional parameters affects the setting for the default boot image:
- If you select the
primary or
secondary optional parameter, that image becomes the configured default boot image for future system reboots. The command fails if the switch is not able to set the operating system image to the image you selected.
You can use the boot set-default command to change the configured default operating system image.
- If you select serviceos as the optional parameter, the configured default boot image remains the same, and the system reboots all management modules with the service operating system.
If the configuration of the switch has changed since the last reboot, when you execute the boot system command you are prompted to save the configuration and you are prompted to confirm the reboot operation.
Saving the configuration is not required. However, if you attempt to save the configuration and there is an error during the save operation, the boot system command is aborted.
Examples
Rebooting the system from the configured default operating system image:
Rebooting the system from the secondary operating system image, setting the secondary operating system image as the configured default boot image:
Canceling a system reboot:
Command History
Release |
Modification |
---|---|
10.07 or earlier |
-- |
Command Information
Platforms |
Command context |
Authority |
---|---|---|
All platforms |
Manager (#) |
Administrators or local user group members with execution rights for this command. |