华为S5735交换机console密码重置和恢复出厂设置

server/2024/10/15 17:58:02/

比较简单,简单说就是进入bootload清除密码,然后进入default mode下重置密码。

1.开机按Ctrl+B,进入启动加载菜单(BootLoad menu)

拨电源重启交换机,大约开机10多秒的时候会出现提示按Ctrl+B可以进入BootLoad menu.

Last reset type: PowerOnPress Ctrl+B to enter BootLoad menu : 1 

2.清除console密码

Password: BootLoad Menu 1. Boot with default mode2. Enter startup submenu3. Enter ethernet submenu4. Enter filesystem submenu5. Enter password submenu6. Clear password for console user7. Reboot(Press Ctrl+E to enter diag menu)Enter your choice(1-7): 6    Note: Clear password for console user? Yes or No(Y/N): y    
Clear password for console user successfully. 

3.进入默认模式(default mode)

Note: Choose "1. Boot with default mode" to boot, then set a new password.Note: If the device is restarted during startup, you need to perform this operation again.BootLoad Menu 1. Boot with default mode2. Enter startup submenu3. Enter ethernet submenu4. Enter filesystem submenu5. Enter password submenu6. Clear password for console user7. Reboot(Press Ctrl+E to enter diag menu)Enter your choice(1-7): 1    Startup information : 1Read boot file: flash:/s5735-l1-v200r021c00spc600.cc 

4.设置密码

Recover configuration begin ...
Recover configuration end
Press ENTER to get started.An initial password is required for the first login via the console.
Set a password and keep it safe. Otherwise you will not be able to login via the console.Please configure the login password (8-16)
Enter Password:
Confirm Password:
Warning: The authentication mode was changed to password authentication and the user level was changed to 15 on con0 at the first user login.
Warning: There is a risk on the user-interface which you login through. Please change the configuration of the user-interface as soon as possible. Info: Smart-upgrade is currently disabled. Enable Smart-upgrade to get recommended version information.
<GZ-DG-FHYYB-AF-AS-S1>

5.保存配置并重启

配置如下:

user-interface con 0authentication-mode passwordset authentication password cipher $1a$/U[)(~F@>7$p<=fF:/-"1jtO|,7NM'(wYsxBK_'0YdABj'U%TCB$idle-timeout 5 0

保存并重启:


<GZ-DG-FHYYB-AF-AS-S1>save
The current configuration will be written to flash:/gz-dg-fhyyb-af-as-s1.cfg.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0..
2024-7-13 00:14:46.570.2+08:00 GZ-DG-FHYYB-AF-AS-S1 %%01CFM/4/SAVE(s)[0]:The user chose Y when deciding whether to save the configuration to the device...
Save the configuration successfully.
<GZ-DG-FHYYB-AF-AS-S1>
<GZ-DG-FHYYB-AF-AS-S1>reboot
Info: The system is now comparing the configuration, please wait.......
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
2024-7-13 00:18:28.810.2+08:00 GZ-DG-FHYYB-AF-AS-S1 %%01CMD/4/REBOOT(s)[2]:The user chose Y when deciding whether to reboot the system. (Task=co0, Ip=**, VpnName=, User=**)
Comparing the firmware versions
The latest firmware version is in use.
Info: System is rebooting, please wait...
Jul 13 2024 00:18:29+08:00 GZ-DG-FHYYB-AF-AS-S1 SYSMIB/4/RELOAD_END:1.3.6.1.4.1.56813.5.25.19.2.2 Reload operation completed
2024-7-13 00:18:29.730.1+08:00 GZ-DG-FHYYB-AF-AS-S1 %%01SRM/4/MSTRSCURST(l)[3]:Master SCU is reset.
2024-7-13 00:18:29.730.2+08:00 GZ-DG-FHYYB-AF-AS-S1 %%01SRM/4/RESETREASON(l)[4]:Board reset by VRP command or net manager, the barcode is: 4E21B0116269.
starting pid 1250, tty '': '/etUnmounting all filesystems: 
The system is going down NOW!
Sent SIGTERM to all processes

恢复出厂配置

命令:reset saved-configuration
然后在是否保存配置时,选择 n,不保存。

<GZ-DG-FHYYB-AF-AS-S1>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..
2024-7-13 02:52:18.70.2+08:00 GZ-DG-FHYYB-AF-AS-S1 %%01CFM/4/RST_CFG(s)[0]:The user chose Y when deciding whether to reset the saved configuration.
Jul 13 2024 02:52:18+08:00 GZ-DG-FHYYB-AF-AS-S1 HWCM/4/CFGCHANGE:OID 1.3.6.1.4.1.56813.6.10.2.1 Configure changed. (EventIndex=3, CommandSource=1, ConfigSource=1, ConfigDestination=4)
Info: Succeeded in clearing the configuration in the device.
<GZ-DG-FHYYB-AF-AS-S1>
<GZ-DG-FHYYB-AF-AS-S1>reboot
<GZ-DG-FHYYB-AF-AS-S1>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 startup saved-configuration file . Continue? [Y/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
Comparing the firmware versions
The latest firmware version is in use.
2024-7-13 02:52:46.590.2+08:00 GZ-DG-FHYYB-AF-AS-S1 
。。。。。。
Sent SIGKILL to all processes
Requesting system reboot

http://www.ppmy.cn/server/132298.html

相关文章

我常用的两个单例模式写法 (继承Mono和不继承Mono的)

不继承Mono 不继承Mono代表不用挂载到场景物体上面&#xff0c;因此直接饿汉式 加 合并空运算符判空创建实例 >(lambda表达式)的意思是get&#xff0c;就是将instance赋给Instance属性 //单例private static JsonDataManager instance new JsonDataManager();public stati…

Yocto - Meta-data中的PATCHTOOL变量介绍

在 Yocto 中&#xff0c;“do_patch ”任务负责在构建过程中为源代码打补丁。Yocto 支持多种补丁管理工具&#xff0c;例如 patch、quilt 和 git&#xff0c;每种工具都有不同的特性和用例。 在 Yocto 项目中&#xff0c;PATCHTOOL 变量决定了用于为源代码打补丁的工具。 In Yo…

使用docker、编写dockerfile、httpd镜像,并启动镜像,创建httpd主页和分页。(2)

1.准备一台机子&#xff0c;准备源&#xff0c;下载docker-ce vi /etc/yum.repo.d/Centos-7.repo 加入以下内容[base] nameCentOS-$releasever - Base - mirrors.aliyun.com failovermethodpriority baseurlhttp://mirrors.aliyun.com/centos/$releasever/os/$basearch/http:/…

一种压缩QRCode矩阵以用于存储的方法

通常QRCode由服务器生成&#xff0c;以图片格式发送到客户端&#xff0c;由客户端直接展示&#xff0c;也可以由客户端使用javascript或其他内置的SDK直接生成。 0、需求 QRCode生成过程中往往是先生成矩阵&#xff0c;然后使用矩阵生成图片&#xff0c;矩阵就是由01组成的一…

瑞芯微RK3566/RK3568 Android11使用OTA升级固件方法,深圳触觉智能鸿蒙开发板演示,备战第九届华为ICT大赛

本文介绍瑞芯微RK3566/RK3568在Android11系统OTA升级固件方法&#xff0c;使用触觉智能的Purple Pi OH鸿蒙开发板演示&#xff0c;搭载了瑞芯微RK3566&#xff0c;Laval官方社区主荐&#xff01; 1、OTA包生成 在源码根目录上执行以下命令编译OTA包 # make installclean # …

python对weedfs的操作

1、weedfs的简介 如果你对weed储存有一定的理解也可以忽略 WeedFS&#xff08;Weed File System&#xff09;是一个开源的分布式文件系统&#xff0c;由Go语言编写&#xff0c;旨在解决海量文件存储和访问的问题。它采用了类似于Hadoop HDFS的分布式文件系统架构&#xff0c;…

载货车一键启动无钥匙进入、手机也能控制、这配置真高端

‌货车一键启动功能的核心作用是通过一个按钮实现车辆的启动和熄火&#xff0c;极大地简化了传统钥匙启动的繁琐步骤&#xff0c;提高了使用的便捷性和安全性。‌ 货车一键启动系统的具体功能包括&#xff1a; 无钥匙进入‌&#xff1a;车主只需携带智能钥匙靠近车辆&#xf…

uniappx uts自学(2024/10/14)

uts需要类型 uts声明变量 let 或 const let相当于 TypeScript 中的 let、kotlin 中的 var、swift 中的 var。 cosnt相当于 TypeScript 中的 const、kotlin 中的 val、swift 中的 let。 let [变量名] : [类型] 值; let str :string "hello"; // 声明一个字符串…