Title: 【Typical Case】How to Configure Scheduled Restart on NBR Devices? [Print this page] Author: zhangqiao@ruiji Time: 2024-8-2 10:39 Title: 【Typical Case】How to Configure Scheduled Restart on NBR Devices?
Keywords:
Scheduled Task, Scheduled Restart
1. Configuration Requirements
Configure an NBR device torestart at 01:00 every day.
2. Device Model and Firmware
Device Type
Device Model
Firmware Version
RGOS11.9(6)B17P2
3. Configuration Notes
Configure the device to savelogs to the hard disk.
Configure a scheduled task.
4.Configuration Procedure
4.1 Configuring the Device to Save Logs to the Hard Disk
Log storage priorities for scheduled tasks: Hard disk > eMMC > USB flash drive > SD card > flash memory.
In the NBR6200 series, theNBR6120-E supports scheduled tasks by default. For other models, enabling Save Logs Locally is required. Scheduled restarts are supported following device restarts (Note: A hard disk is necessary for other scheduled tasks).
Save Logs Locally
is disabled by default on the NBR6200-E. Configuration of scheduled tasks is only available after Save Logs Locally is enabled. To enable Save Logs Locally, choose Advanced > System > Enhancement > Save Logs Locally > Disable. Uncheck the box next to Disable.
Configuration path:
Choose Advanced > System > Enhancement > Save Logs Locally > Disable.
By default, the box next to Disable is checked, meaning logs are not saved to the hard disk. To ensure a scheduled task has the highest priority, uncheck the box next to Disable to save the logs to the hard disk.
Note: After unchecking Disable, restart the device to apply the configuration. Then proceed to configure ascheduled task. 4.2 Configuring a Scheduled Task
After the scheduled task function is enabled on the NBR6200-E, it cannot be configured through the web interface. You must use the CLI to configure this function.
1. Run the following command toenable the User Task function. user-task enable
2. Configure a one-time scheduledtask. reload at hh:mm:ss month dayyear
3. Configure a recurring scheduled task. (Enter ruijie# in privileged EXEC mode) user-task add aa command“reload@y” mode exec date 2018 9 4 time 3:00 every 24:00
Run the preceding command to configure a recurring task named aa that restartsthe device daily at 3:00.
Note: The configured time cannot be earlier than the current system time. Otherwise, the device will restart immediately. Please exercise caution.
4. View a scheduled task.
When you run the show run command, the scheduled task configuration will not appear. The output of show run only displays user-task enable without showing the detailed configuration. To view the scheduled task configuration, use the show user-task command.
5. Delete a scheduled task. NBR2500D-E#user-task deleteaa ---aa indicates the task name.
Welcome to Ruijie Community (https://community.ruijienetworks.com/)