当前位置: 首页 > news >正文

华为网络设备重启-保存-清楚配置恢复出厂配置命令

1.reboot重启设备命令

reboot命令用来重新启动设备。

该命令功能与设备关闭电源再开启电源的效果相同。在对设备进行远程维护时,不需到现场重新启动设备,只需执行本命令即可在远程重新启动设备。

【1】重新启动设备

执行命令reboot后,如果修改了设备当前配置,系统重启前将提示用户是否保存配置。

image

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 . Continue? [Y/N]:N    //选择N,不保存配置
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    //提示是否重启,选择Y重启

【2】快速重新启动设备

执行命令reboot fast后,系统将快速重启设备,不提示用户是否保存配置,未保存的配置信息将丢失。

image

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    //提示是否重启,选择Y重启

执行命令reboot fast后,系统会提示如下信息: Info: system is sync data now, please wait ... 当出现该提示信息时,表示设备内部正在进行数据同步操作。

注意事项

执行该命令后,如果用户不对系统提示信息做响应,则超时后会退回到用户视图,不重新启动。

在一般情况下,请勿使用该命令,否则将导致整个设备业务中断。

在重启设备前,要确认配置文件是否已经保存。

2.save保存配置命令

清空重启后,再配置交换机,或者新开局第一次配置交换机,在保存配置时,一定要根据回显提示,输入两次y,才能保存成功。回显如下:

<Quidway> save The current configuration will be written to the device. Are you sure to continue?[Y/N]y

Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]: flash:/vrpcfg.zip exists, overwrite?[Y/N]:y

Now saving the current configuration to the slot 0. Save the configuration successfully.

3.清空配置恢复出厂配置命令

如果需要清楚全部配置恢复出厂配置,请按照下面命令行操作。

image

<SW>reset saved-configuration    ////清除当前配置
Warning: The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:y
Warning: Now clearing the configuration in the device.
Nov 10 2025 23:29:11-08:00 SW %%01CFM/4/RST_CFG(l)[1]:The user chose Y when deci
ding whether to reset the saved configuration.
Info: Succeeded in clearing the configuration in the device.
<SW>

http://www.zskr.cn/news/45953.html

相关文章:

  • 推荐一种异步线程执行过程中更新进度的方法
  • 2025 年 11 月电源适配器厂家推荐排行榜,12V2A电源适配器,12V电源适配器,24V电源适配器,笔记本电源适配器公司推荐
  • Numpy - numpy.random.randn()
  • AI元人文:交织的智慧——应对价值困境的四条路径
  • 黑马点评优雅关闭服务
  • 01-03 设计模式 - 导学
  • 35
  • 11.10学习总结
  • Oracle数据库实例深度解析与实践指南
  • 20232405 2024-2025-1 《网络与系统攻防技术》实验四实验报告
  • duckdb比sqlite大多了
  • React:使用Tailwind CSS、Streamdown与Ant Design X
  • Python 面向对象编程进阶
  • Emacs Org-Mode插入文本内容,自动对齐表格(Org-Babel)
  • 2025 年 11 月护栏生产厂家推荐排行榜,锌钢护栏,市政护栏,道路护栏,阳台护栏,草坪护栏公司推荐
  • python中Flask框架下session的使用
  • 软件工程学习日志2025.11.10
  • 2025 年 11 月储罐厂家推荐排行榜,钢衬塑储罐,钢塑复合储罐,化工储罐,防腐储罐,PE储罐,盐酸储罐,硫酸储罐,聚丙烯储罐,不锈钢储罐,次氯酸钠储罐公司推荐
  • AWS云从业者认证学习指南与练习平台
  • 2025 年 11 月扒胎机厂家推荐排行榜,液压无损扒胎机,全自动扒胎机,汽保扒胎机,轮胎扒胎机,汽车扒胎机公司推荐
  • SpringBoot热启动
  • 2025 年 11 月超声波检测设备厂家推荐排行榜,超声波检测系统,相控阵/高频/水浸/液冷板/钎焊超声波检测,高频相控阵超声波检测设备厂家推荐
  • 2025 年 11 月除蜡水厂家推荐排行榜,钢铁除蜡水,不锈钢除蜡水,金属除蜡水,工业除蜡水公司推荐
  • 20232309 2025-2026-1 《网络与系统攻防技术》实验四实验报告
  • Microsoft Activation Scripts (MAS)
  • 团队作业2
  • 详细介绍:用户体验就是新SEO:如何同时提升搜索者满意度和搜索排名
  • P6688 可重集 笔记
  • 20232320 2024-2025-1 《网络与系统攻防技术》实验四实验报告
  • STM32环境监测架构开发实践