reboot

Use reboot to reboot a card or the entire system. (In standalone mode.)

Use reboot to reboot an IRF member device or all IRF member devices. (In IRF mode.)

Syntax

In standalone mode:

reboot [ slot slot-number ] [ force ]

In IRF mode:

reboot [ chassis chassis-number [ slot slot-number ] ] [ force ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)

slot slot-number: Specifies a card by its slot number.

force: Reboots the device immediately without performing any software check. If this keyword is not specified, the system checks, for example, whether the main system software image file exists and whether the hard disk is not being written. If any circumstance might affect data protection, the system does not reboot the device.

Usage guidelines


[CAUTION: ]

CAUTION:

  • Device reboot interrupts network services.

  • Using the force keyword might cause file system corruption. As a best practice, use this keyword only when the system fails or cannot start up.


If the main startup software images are corrupted or missing, you must re-specify a set of main startup software images before using the reboot command to reboot the device. If you fail to do so, the device cannot start up.

For data security, the device does not reboot if you reboot the device while the device is performing file operations.


[IMPORTANT: ]

IMPORTANT:

To ensure correct operation of the system and cards, do not trigger a switchover by rebooting the active MPU if the status of a card is not Stable.



[NOTE: ]

NOTE:

To ensure correct operation of the IRF fabric and MPUs, do not trigger a switchover by rebooting the global active MPU if the status of a card is not Stable.


Examples

# Reboot the device when no configuration change has occurred since the last time you saved the running configuration.

<Sysname> reboot
 Start to check configuration with next startup configuration file, please wait.........DONE!
 This command will reboot the device. Continue? [Y/N]:y
 Now rebooting, please wait...

# If any configuration has changed, reboot the device and save the configuration.

<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...

# If any configuration has changed, reboot the device but do not save the configuration.

<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]:n
 This command will reboot the device. Continue? [Y/N]:y
 Now rebooting, please wait...

# Reboot the device immediately without performing any software check.

<Sysname> reboot force
 A forced reboot might cause the storage medium to be corrupted. Continue? [Y/N]:y
 Now rebooting, please wait...

# In standalone mode, reboot the interface card in slot 2.

<Sysname> reboot slot 2
 This command will reboot the specified slot, Continue? [Y/N]:y
 Now rebooting, please wait...

# In standalone mode, reboot the interface card in slot 2 by force.

<Sysname> reboot slot 2 force
 A forced reboot might cause the storage medium to be corrupted. Continue? [Y/N]:
 Now rebooting, please wait...

# In IRF mode, reboot IRF member device 2.

<Sysname> reboot chassis 2
 This command will reboot the specified chassis, Continue? [Y/N]:y
 Now rebooting, please wait...

# In IRF mode, reboot IRF member device 2 by force.

<Sysname> reboot chassis 2 force
 A forced reboot might cause the storage medium to be corrupted. Continue? [Y/N]:
 Now rebooting, please wait...

# In IRF mode, reboot the interface card in slot 2 on IRF member device 2.

<Sysname> reboot chassis 2 slot 2
 This command will reboot the specified slot, Continue? [Y/N]:y
 Now rebooting, please wait...

# In IRF mode, reboot the interface card in slot 2 on IRF member device 2 by force.

<Sysname> reboot chassis 2 slot 2 force
 A forced reboot might cause the storage medium to be corrupted. Continue? [Y/N]:y
 Now rebooting, please wait...

Related commands

display system stable state