request system reboot (Junos OS)
Syntax
request system reboot <at time> <both-routing-engines> <in minutes> <media (compact-flash | disk | removable-compact-flash | usb)> <message "text"> <other-routing-engine>
Syntax (EX Series Switches and EX Series Virtual Chassis)
request system reboot <all-members | local | member member-id> <at time> <in minutes> <media (external | internal)> | <media (compact-flash | disk | removable-compact-flash | usb)> <message "text"> <slice slice>
Syntax (MX Series Routers and MX Series Virtual Chassis, EX9200 Switches and EX9200 Virtual Chassis)
request system reboot <all-members | local | member member-id> <at time> <both-routing-engines> <in minutes> <media (external | internal)> | <media (compact-flash | disk | usb)> | <junos | network | oam | usb> <message "text"> <other-routing-engine>
Syntax (QFabric Systems)
request system reboot <all <graceful>> <at time> <director-device name> <director-group <graceful>> <fabric <graceful>> <in minutes> <in-service> <media> <message “text”> <node-group name> <slice slice>
Syntax (QFX Series Switches and QFX Series Virtual Chassis, Virtual Chassis Fabric)
request system reboot <all-members | local | member member-id> <at time> <in minutes> <in-service> <hypervisor> <junos | network | oam | usb> <message “text”> <slice slice>
Syntax (TX Matrix Router)
request system reboot <all-chassis | all-lcc | lcc number | scc> <at time> <both-routing-engines> <in minutes> <media (compact-flash | disk)> <message "text"> <other-routing-engine>
Syntax (TX Matrix Plus Router)
request system reboot <all-chassis | all-lcc | lcc number | sfc number> <at time> <both-routing-engines> <in minutes> <media (compact-flash | disk)> <message "text"> <other-routing-engine> <partition (1 | 2 | alternate)>
Description
Use this command to reboot the device software.
This command can be used on standalone devices and on devices supported in a Virtual Chassis, Virtual Chassis Fabric, or QFabric system.
Starting with Junos OS Release 15.1F3, the request system reboot
command
reboots only the guest operating system on the PTX5000 with RE-PTX-X8-64G and, MX240, MX480,
and MX960 with RE-S-X6-64G.
Starting with Junos OS Release 15.1F5, the request system reboot
command
reboots only the guest operating system on the MX2010, and MX2020 with REMX2K-X8-64G.
Starting from Junos OS Release 17.2R1, PTX10008 routers do not support the request
system reboot
command. Starting from Junos OS Release 17.4R1, PTX10016 routers do
not support the request system reboot
command. Use the request
vmhost reboot
command instead of the request system reboot
command on the PTX10008 and PTX10016 routers to reboot the Junos OS software package or
bundle on the router. See request vmhost reboot.
Starting from Junos OS Release 19.1R1, the PTX10002-60C router and the QFX10002-60C switch
do not support the request system reboot
command. Use the request
vmhost reboot
command instead of the request system reboot
command on these devices to reboot the Junos OS software package or bundle on the device.
See request vmhost reboot.
On a QFabric system, to avoid traffic loss on the network Node group, switch mastership of the Routing Engine to the backup Routing Engine, and then reboot.
Options
The options described here are not all supported on every platform or release of Junos OS. Refer to the Syntax sections for the options commonly available on each type of platform.
none |
Reboot the software immediately. Note:
On EX Series and QFX Series switches, the device waits for one minute before
rebooting. To reboot the device immediately, use the |
all-chassis |
(Optional) On a TX Matrix router or TX Matrix Plus router, reboot all routers connected to the TX Matrix or TX Matrix Plus router, respectively. |
all-lcc |
(Optional) On a TX Matrix router or TX Matrix Plus router, reboot all line card chassis connected to the TX Matrix or TX Matrix Plus router, respectively. |
all-members | local | member
member-id |
(Optional) Specify which member of the Virtual Chassis to reboot:
|
at time |
(Optional) Time at which to reboot the software, specified in one of the following ways:
|
both-routing-engines |
(Optional) Reboot both Routing Engines at the same time. |
fast-boot |
(Optional, QFX Series) Minimizes traffic loss and downtime of network ports by leaving the network ports up during the system reboot. |
hypervisor |
(Optional) Reboot Junos OS, host OS, and any installed guest VMs. |
in minutes |
(Optional) Number of minutes from now to reboot the software. The minimum value is 1.
This option is an alias for the |
in-service |
(Optional) Enables you to reset the software state (no software version change) of the system with minimal disruption in data and control traffic. |
junos |
(Optional) Reboot from the Junos OS (main) volume. |
lcc number |
—(Optional) Line-card chassis (LLC) number. Replace number with the following values depending on the LCC configuration:
|
media (compact-flash | disk | removable-compact-flash | usb) |
(Optional) Use the indicated boot medium for the next boot. |
media (external | internal) |
(Optional) Use the indicated boot medium for the next boot:
|
message "text" |
(Optional) Message to display to all system users before stopping or rebooting the software. |
network |
(Optional) Reboot using the Preboot Execution Environment (PXE) boot method over the network. |
oam |
(Optional) Reboot from the maintenance volume (OAM volume, usually the compact flash drive). |
other-routing-engine |
(Optional) Reboot the other Routing Engine from which the command is issued. For example, if you issue the command from the primary Routing Engine, the backup Routing Engine is rebooted. Similarly, if you issue the command from the backup Routing Engine, the primary Routing Engine is rebooted. |
partition partition |
(Optional) Reboot using the specified partition on the boot media. This option is
equivalent to the
|
scc |
(Optional) Reboot the Routing Engine on the TX Matrix switch-card chassis. If you issue the command from re0, re0 is rebooted. If you issue the command from re1, re1 is rebooted. |
sfc number |
(Optional) Reboot the Routing Engine on the TX Matrix Plus switch-fabric chassis. If you issue the command from re0, re0 is rebooted. If you issue the command from re1, re1 is rebooted. Replace number with 0. |
slice slice |
(Optional) Reboot using the specified partition on the boot media. This option was
originally the
Note:
The |
usb |
(Optional) Reboot from a USB device. |
The following options are available only on QFabric Systems:
all |
(Optional) Reboots the software on the Director group, fabric control Routing Engines, fabric manager Routing Engines, Interconnect devices, and network and server Node groups. |
director-device name |
(Optional) Reboots the software on the Director device and the default partition (QFabric CLI). |
director-group |
(Optional) Reboots the software on the Director group and the default partition (QFabric CLI). |
fabric |
(Optional) Reboots the fabric control Routing Engines and the Interconnect devices. |
node-group name |
(Optional) Reboots the software on a server Node group or a network Node group. |
graceful |
(Optional) Enables the QFabric component to reboot with minimal impact to network
traffic. This sub-option is only available for the |
Additional Information
Reboot requests are recorded in the system log files, which you can view with the
show log
command (see show
log). Also, the names of any running processes that are scheduled to be shut down
are changed. You can view the process names with the show system processes
command (see show system processes).
On a TX Matrix or TX Matrix Plus router, if you issue the request system
reboot
command on the primary Routing Engine, all the primary Routing Engines
connected to the routing matrix are rebooted. If you issue this command on the backup
Routing Engine, all the backup Routing Engines connected to the routing matrix are
rebooted.
Before issuing the request system reboot
command on a TX Matrix Plus
router with no options or the all-chassis
, all-lcc
,
lcc number
, or sfc
options, verify
that primary Routing Engine for all routers in the routing matrix are in the same slot
number. If the primary Routing Engine for a line-card chassis is in a different slot
number than the primary Routing Engine for a TX Matrix Plus router, the line-card chassis
might become logically disconnected from the routing matrix after the request
system reboot
command.
To reboot a router that has two Routing Engines, reboot the backup Routing Engine (if you have upgraded it) first, and then reboot the primary Routing Engine.
Required Privilege Level
maintenance
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
- request system reboot
- request system reboot (at 2300)
- request system reboot (in 2 Hours)
- request system reboot (Immediately)
- request system reboot (at 1:20 AM)
- request system reboot in-service
request system reboot
user@host> request system reboot Reboot the system ? [yes,no] (no)
request system reboot (at 2300)
user@host> request system reboot at 2300 message ?Maintenance time!? Reboot the system ? [yes,no] (no) yes shutdown: [pid 186] *** System shutdown message from root@test.example.net *** System going down at 23:00
request system reboot (in 2 Hours)
The following example, which assumes that the time is 5 PM (17:00), illustrates three different ways to request the system to reboot in two hours:
user@host> request system reboot at +120 user@host> request system reboot in 120 user@host> request system reboot at 19:00
request system reboot (Immediately)
user@host> request system reboot at now
request system reboot (at 1:20 AM)
To reboot the system at 1:20 AM, enter the following command. Because 1:20 AM is the next day, you must specify the absolute time.
user@host> request system reboot at 06060120 request system reboot at 120 Reboot the system at 120? [yes,no] (no) yes
request system reboot in-service
user@switch> request system reboot in-service Reboot the system ? [yes,no] yes [Feb 22 02:37:04]:ISSU: Validating Image PRE ISSR CHECK: --------------- PFE Status : Online Member Id zero : Valid VC not in mixed or fabric mode : Valid Member is single node vc : Valid BFD minimum-interval check done : Valid GRES enabled : Valid NSR enabled : Valid drop-all-tcp not configured : Valid Ready for ISSR : Valid warning: Do NOT use /user during ISSR. Changes to /user during ISSR may get lost! Current image is jinstall-jcp-i386-flex-18.1.img [Feb 22 02:37:14]:ISSU: Preparing Backup RE Prepare for ISSR [Feb 22 02:37:19]:ISSU: Backup RE Prepare Done Spawning the backup RE Spawn backup RE, index 1 successful Starting secondary dataplane Second dataplane container started GRES in progress Waiting for backup RE switchover ready GRES operational Copying home directories Copying home directories successful Initiating Chassis In-Service-Upgrade for ISSR Chassis ISSU Started [Feb 22 02:42:55]:ISSU: Preparing Daemons [Feb 22 02:43:00]:ISSU: Daemons Ready for ISSU [Feb 22 02:43:05]:ISSU: Starting Upgrade for FRUs [Feb 22 02:43:15]:ISSU: FPC Warm Booting [Feb 22 02:44:16]:ISSU: FPC Warm Booted [Feb 22 02:44:27]:ISSU: Preparing for Switchover [Feb 22 02:44:31]:ISSU: Ready for Switchover Checking In-Service-Upgrade status Item Status Reason FPC 0 Online (ISSU) Send ISSR done to chassisd on backup RE Chassis ISSU Completed Removing dcpfe0 eth1 128.168.0.16 IP Bringing down bme00 Post Chassis ISSU processing done [Feb 22 02:44:33]:ISSU: IDLE Stopping primary dataplane Clearing ISSU states Console and management sessions will be disconnected. Please login again. device_handoff successful ret: 0 Shutdown NOW! [pid 14305] *** FINAL System shutdown message from root@sw-duckhorn-01 *** System going down IMMEDIATELY
Release Information
Command introduced before Junos OS Release 7.4.
Option other-routing-engine
introduced in Junos OS Release 8.0.
Option sfc
introduced for the TX Matrix Plus router in Junos OS Release
9.6.
Option partition
changed to slice
in Junos OS Release
10.0 for EX Series switches.
Option both-routing-engines
introduced in Junos OS Release 12.1.
Option fast-boot
introduced in Junos OS Release 14.1X53-D10 for QFX
Series.