148
Syntax
reboot
[
slot
slot-number
] [
force
]
Views
User view
Predefined user roles
network-admin
Parameters
slot
slot-number
: Specifies a stack member device by its member ID. If you do not specify a member
ID, this command reboots all member devices in the stack.
force
: Reboots the device immediately without performing software or hard disk check. If you do not
specify this keyword, the system first examines whether the reboot might result in data loss or a
system failure. For example, the system examines whether the main system software image file
exists and whether a write operation is in progress on a storage medium. If the reboot might cause
these problems, the system does not reboot the device.
Usage guidelines
Use the command with caution because a device reboot might interrupt network services.
If the main startup software images are corrupted or missing, the device cannot be rebooted with the
reboot
command. Specify a new main configuration file to reboot the device.
For data security, the device does not reboot if you reboot the device while the device is performing
file operations.
Use the
force
keyword only when the device fails or a
reboot
command without the
force
keyword
cannot perform a reboot task correctly. A
reboot
command with the
force
keyword might result in file
system corruption because it does not perform data protection.
Examples
# Reboot all stack member devices.
<Sysname> reboot
Start to check configuration with next startup configuration file, please
wait.........DONE!
Current configuration may be lost after the reboot, save current configuration? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
flash:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
# Reboot the device immediately without performing software check.
<Sysname> reboot force
A forced reboot might cause the storage medium to be corrupted. Continue? [Y/N]:y
Now rebooting, please wait...
summary
Use
summary
to display summary information for the device.