run request system reboot

The run request system reboot command restarts the device.

Command Syntax

run request system reboot <description>


Parameters

ParameterDescription

<description>

Optional. Add a description in the syslog before the system reboots by using run request system reboot command. The value is a string. If the description contains spaces, we need to enclose the whole string in double quotes.

Usage Guidelines

The command enables you to restart the device remotely.

After executing the reboot command, PICOS will automatically save the user configuration and restart the device with system diagnostics.

As system reboot will cause service interruption, so be cautious to use this command.

By configuring the description parameter, the system prints a system log with this description information before the system reboots.

  •   The log message containing this description is in the syslog file /var/log/messages.
  • The log message containing this description information is at the info level. To display the log message, you need to set the log-level to info or trace. Otherwise, the system will not record this log.

  • The log message containing this description information is recorded only in the scenarios when the system is restarted by using run request system reboot <description> command. But in the scenarios of restarting the system when manually powered off or device fault, the system will not record the log message containing this description information.

Example

  • Reboot PICOS.    
admin@Xorplus# run request system reboot
  • Reboot PICOS with the description information “Hello World”.
admin@Xorplus# set system syslog local-file disk   // Set the system log file to save to disk.
admin@Xorplus# run request system reboot "Hello World"
admin@Xorplus:~$ tail -f /var/log/messages       // Check the system logs.
Jan  3 1970 01:08:59 Xorplus local0.warning : [LOGIN]Redundant power supply unit(RPSU) 1 plug in.
Jan  3 1970 01:08:59 Xorplus local0.warning : [LOGIN]Redundant power supply unit(RPSU) 1 power on
Jan  3 1970 01:08:59 Xorplus local0.warning : [LOGIN]rpsu 2 status changed from PSU_STATUS_INVALID to PSU_STATUS_PLUG_IN
Jan  3 1970 01:08:59 Xorplus local0.warning : [LOGIN]Redundant power supply unit(RPSU) 2 plug in.
Jan  3 1970 01:09:54 Xorplus local0.debug : [LOGIN]Run auto switch fan controller
Jan  3 1970 01:10:54 Xorplus local0.debug : [LOGIN]Run auto switch fan controller
Jan  3 1970 01:11:54 Xorplus local0.debug : [LOGIN]Run auto switch fan controller
Jan  3 1970 01:11:59 Xorplus auth.info : Accepted password for admin from 10.10.50.143 port 58420 ssh2
Jan  3 1970 01:12:10 Xorplus auth.info : Accepted password for admin from 10.10.50.143 port 58422 ssh2
Jan  3 1970 01:12:54 Xorplus local0.debug : [LOGIN]Run auto switch fan controller
Jan  3 1970 01:13:54 Xorplus local0.debug : [LOGIN]Run auto switch fan controller
Jan  3 1970 01:14:21 Xorplus local0.info : [LOGIN]Hello World  //The user configured reboot description log.
 
Broadcast message from root@Xorplus (Sat Jan  3 01:14:21 1970):

 
The system is going down for reboot NOW!
 

Broadcast message from root@Xorplus (Sat Jan  3 01:14:22 1970):
 

The system is going down for reboot NOW!
Jan  3 1970 01:14:22 Xorplus user.notice : shutting down for system reboot
[ ok  [....] Stopping internet superserver: inetd.
[ ok ] Stopping: L2/L3.............
[ ok ] Asking all remaining processes to terminate...done.
[ ok ] All processes ended within 1 seconds...done.
[ ok ] Stopping enhanced syslogd: rsyslogd.
[....] Deconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Copyright © 2024 Pica8 Inc. All Rights Reserved.