request system reboot (Junos OS with Upgraded FreeBSD)
Syntax
request system reboot <at time> <both-routing-engines> <in minutes> <junos> <message "text"> <network> <oam> <other-routing-engine> <usb>
Description
For devices running FreeBSD Release 10 or above, use this command to reboot the device software.
Options
none | Reboot the device software immediately. |
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. |
in minutes |
(Optional) Number of minutes from now to reboot the
software. This option is an alias for the |
junos |
(Optional) Reboot from the junos volume. |
message "text" |
(Optional) Message to display to all system users before stopping or rebooting the software. |
network |
(Optional) Reboot from the network. |
oam |
(Optional) Reboot from the oam volume. |
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. |
usb |
(Optional) Reboot from the USB device. From U-Boot release 3.12 and later and FreeBSD release 10 or later, the USB boot behaves differently than in prior releases. Therefore, to stop the device from booting from the USB in the future, you can either:
|
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).
To reboot a device 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
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@berry.network.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
Release Information
Command introduced in Junos OS Release 15.1.
Command introduced for all platforms using Junos OS with upgraded FreeBSD. To find which platforms in which releases use Junos OS with upgraded FreeBSD, see Feature Explorer, enter freebsd, and select Junos kernel upgrade to FreeBSD 10+.