Description

This article explains the types of reboot commands that can be used for scheduling a reboot to Juniper devices with a specific date and time.

Solution

Scenario 1:

If you would like to reboot the router at 00:00 tomorrow, and today is November 27th, 2023, the command to run is:

Syntax:
request system reboot at yyyymmdd
Example:
request system reboot at 20231128
 
Scenario 2:

To reboot the router tomorrow at 04:00 (4 am), and today is November 27th, 2023, the command to run:
 
Syntax:
request system reboot at yyyymmddhhmm
Example:
request system reboot at 202311280400
 
Scenario 3:

To reboot the router tomorrow at 17:00 (5 pm), and today is November 27th, 2023, the command to run
 
Syntax:
request system reboot at yymmddhhmm
Example:
request system reboot at 202311281700

Lab test:

root@switch> request system reboot at 202311111111200923 

Reboot the system at 202311200923? [yes,no] (no) yes     

*** System shutdown message from root@switch ***    

System going down in 4 minutes                                                                 

Shutdown at Mon Nov 20 09:23:00 2023.

root@switch> clear system reboot >> To terminate the reboot
reboot requested by user at Thu November  20 00:00:00 2023
[process id 976]
Terminating...

 

Note:

In case you need to configure a specific time besides the above options, or an additional reboot after that one, you can configure it like this. In this way, the switch will reboot even if the device reboots by itself:
 
Syntax:
set event-options generate-event reboot time-of-day 11:02:00
set event-options policy POLIZA_REBOOT events reboot
set event-options policy POLIZA_REBOOT then execute-commands commands "request system reboot"

Modification History

2023-11-27: Article Created

2026-03-05: Added note in the solution to provide an additional option

Related Information

https://community.juniper.net/communities/community-home/digestviewer/viewthread?MID=73168