HUAWEI 交换机如何命令重启(华为交换机ctrl b重置)
S系列和E系列交换机(S1700除外)可以通过reboot命令重启设备,或断电重启。
reboot重启又有多种方式,具体如下:
1. reboot //需要根据系统提示信息,选择是否保存设备当前配置
2. reboot fast //系统将快速重启设备,不提示用户是否保存配置,未保存的配置信息将丢失
3. reboot save diagnostic-information //系统在重新启动前将诊断信息保存到默认存储器的根目录下
4. schedule reboot //用来配置设备的定时重启功能,可以设置具体的重启时间或重启前的等待时间。
注意:
需要注意的是,重启设备会导致业务中断以及数据丢失,请根据需要确认配置文件是否保存,谨慎操作。
举例说明:
■ 重新启动设备。
<HUAWEI> reboot
Info: The system is now comparing the configuration, please wait........
Warning: The configuration has been modified, and it will be saved to the next s
tartup saved-configuration file cfcard:/204.cfg. Continue? [Y/N]:y
Info: If want to reboot with saving diagnostic information, input 'N' and then e
xecute 'reboot save diagnostic-information'.
System will reboot! Continue?[Y/N]:y
■ 快速重新启动设备。
<HUAWEI> reboot fast
Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'.
System will reboot! Continue?[Y/N]:y
■ 设置设备在当天晚上22:00重新启动。
<HUAWEI> schedule reboot at 22:00
Info: The system is now comparing the configuration, please wait.
Warning: The configuration has been modified, and it will be saved to the next startup saved-configuration file flash:/vrpcfg.zip. C
ontinue? [Y/N]:y
Now saving the current configuration to the slot 0...
Save the configuration successfully.
Info: Reboot system at 22:00:00 2012/06/12 UTC-05:13(in 2 hours and 0 minutes)
confirm?[Y/N]:y
■ 设置设备在30分钟后强制重新启动。
schedule reboot delay 00:30 force
schedule reboot
命令功能
schedule reboot命令用来配置设备的定时重启功能,可以设置具体的重启时间或重启前的等待时间。
undo schedule reboot命令用来取消定时重启功能。
缺省情况下,没有配置设备定时重启功能。
命令格式
schedule reboot { at time | delay interval [ force ] }
undo schedule reboot
参数说明
参数 | 参数说明 | 取值 |
at time | 指定设备重启的时间。 | time的格式为hh:mm YYYY/MM/DD,必须大于设备的当前时间,且与当前时间的差值范围小于720小时。YYYY/MM/DD表示年月日,为可选参数。其中:
|
delay interval | 指定设备重启前等待的时间。 | interval的格式为hh:mm或mm,等待的时间最大不超过720小时。
|
force | 指定强制定时重启设备。 | - |