首页 > 其他分享 >删除Console密码

删除Console密码

时间:2022-09-22 08:44:54浏览次数:56  
标签:Console 删除 zip vrpcfg 密码 console password

场景:

当telnet、ssh等方式无法管理设备且console口密码被忘记时。

华为设备清除方法

盒式V100R002/V100R003删除Console密码

  1. 重启交换机,进入BootRoM菜单后,选择5.Enter filesystem submenu,进入文件系统子菜单。
  2. 进入文件系统子菜单后,选择4.Rename file from flash,把默认配置文件vrpcfg.zip改为其他名称,例如:vrptest.zip。
  3. 重启后进入交换机,此时交换机恢复为出厂的默认配置。
  4. 把改名后的文件vrptest解压缩为vrpcfg.bat。
    <Quidway> unzip vrptest vrpcfg.bat
  5. 执行execute命令,把原有的配置调用出来,在此基础上可把console的密码去掉。
    <Quidway> system-view
    [Quidway] execute vrpcfg.bat
    [Quidway] user-interface console 0
    [Quidway-ui-console0] undo authentication-mode
    [Quidway-ui-console0] quit
    [Quidway] quit
  6. 保存配置为vrpcfg.zip。
    <Quidway> save                                            
    The current configuration will be written to the device. Continue? [Y/N]:y      
    Info: Please input the file name(*.cfg,*.zip)[vrpcfg.zip]:                      
    Jun 25 2010 11:41:59 Quidway %%01CFM/4/SAVE(l): The user chose Y when deciding w
    hether to save the configuration to the device.    vrpcfg.zip   //这里要输入正确的默认配置文件名称 vrpcfg.zip
  7. 重启交换机后,Console密码被删除,同时原有的业务配置不丢失。

盒式V100R005及之后版本删除Console密码

设备启动过程中,首先加载BootROM程序,然后再加载系统软件。当界面出现如下提示信息时,两秒内按下快捷键Ctrl+B,进入BootROM主菜单。

BIOS LOADING ...
Copyright (c) 2008-2010 HUAWEI TECH CO., LTD.
CX22EFFE (Ver124, Jun  9 2010, 17:41:46)

Press Ctrl+B to enter BOOTROM menu ... 0 
password:    //输入BootROM密码,缺省密码是[email protected]

输入正确的BootROM密码后,显示的BootROM菜单如下:

          BOOTROM  MENU

    1. Boot with default mode
    2. Enter serial submenu
    3. Enter startup submenu
    4. Enter ethernet submenu
    5. Enter filesystem submenu
    6. Modify BOOTROM password
    7. Clear password for console user
    8. Reboot
Enter your choice(1-8): 7
Note: Clear password for console user? Yes or No(Y/N): y    

Clear password for console user successfully. Choose "1" to boot, then set a new  password
Note: Do not choose "Reboot" or power off the device, otherwise this operation will not take effect 

选择7 .Clear password for console user,然后选择1. Boot with default mode,即可以删除Console密码。

注意:

清除Console密码后,注意选择BootROM主菜单下的“1. Boot with default mode”进行启动,不能选择“8. Reboot”,也不能掉电,否则配置将会失效。

框式V100R001/V100R002/V100R003删除Console密码

  1. 重启交换机,进入BootROM菜单后,按CTRL+Z进入隐含菜单。
  2. 选择8-Rename file in CFCard,把默认配置文件vrpcfg.zip改为其他名称,例如:vrptest.zip。
  3. 重启后进入交换机,此时交换机恢复为出厂的默认配置。
  4. 把改名后的文件vrptest解压缩为vrpcfg.bat。
    <Quidway> unzip vrptest vrpcfg.bat
  5. 执行execute命令,把原有的配置调用出来,在此基础上可把console的密码去掉。
    <Quidway> system-view
    [Quidway] execute vrpcfg.bat
    [Quidway] user-interface console 0
    [Quidway-ui-console0] undo authentication-mode
    [Quidway-ui-console0] quit
    [Quidway] quit
  6. 保存配置为vrpcfg.zip 。
    <Quidway> save                                            
    The current configuration will be written to the device. Continue? [Y/N]:y      
    Info: Please input the file name(*.cfg,*.zip)[vrpcfg.zip]:                      
    Jun 25 2010 11:41:59 Quidway %%01CFM/4/SAVE(l): The user chose Y when deciding w
    hether to save the configuration to the device.    vrpcfg.zip  //这里要输入正确的默认配置文件名称 vrpcfg.zip  
  7. 重启交换机后,Console密码被删除,同时原有的业务配置不丢失。

框式V100R006及之后版本删除Console密码

一台新设备上电启动,首次通过Console登录会提示输入Console口登录密码,也可以在Console口用户界面通过set authentication password [ cipher password ]命令设定。如果用户忘记Telnet登录和Console登录密码,此时会导致设备始终无法登录。设备为此设置了保险措施,在BootROM菜单下提供清除Console登录密码功能。操作步骤如下:

启动过程中,用户界面提示按Ctrl+B,输入密码进入BootROM,在BootROM主菜单下,选择8进行Console密码清除。

            MAIN  MENU

    1. Boot with default mode
    2. Boot from Flash
    3. Boot from CFCard
    4. Enter serial submenu
    5. Enter ethernet submenu
    6. Modify Flash description area
    7. Modify BootROM password
    8. Clear password for console user
    9. Reboot

Enter your choice(1-9):8
Note: Clear password for console user? Yes or No(Y/N): y    

Clear password for console user successfully. Choose "1" to boot, then set a new  password
Note: Do not choose "Reboot" or power off the device, otherwise this operation will not take effect 
注意: 清除Console密码后,注意选择BootROM主菜单下的“1. Boot with default mode”进行启动,不能选择“9. Reboot”,也不能掉电,否则配置将会失效。

 

标签:Console,删除,zip,vrpcfg,密码,console,password
From: https://www.cnblogs.com/wushuai2018/p/16717897.html

相关文章

  • 域内密码凭证获取
    成殇Orz10x00活动目录数据库由ntds.dit文件构成默认存储在所有域控制器上的%SystemRoot%\NTSD文件夹中只能通过域控制器进程和协议访问ntds.dit:活动目录数据库,包括......
  • Oracle删除表空间和用户
    删除oracle用户和表空间的方法删除用户1dropuser用户名称cascade;删除表空间1DROPTABLESPACEtablespace_nameINCLUDINGCONTENTSANDDATA......
  • MYSQL8.0 忘记密码
    1、关闭MySQL服务,以管理员身份运行cmd,输入netstopMySQL(服务名) 2、跳过权限验证,mysqld--console--skip-grant-tables--shared-memory3、以管理员身份运行cmd,新开一......
  • centos修改root密码
    1.开机时,在选择内核时按e  2.在linux16这行最后输入rd.breakconsole=tty0,进入系统   此时进入紧急模式 3.依次输入mount-oremount,rw/sysrootchroot......
  • [20220909]bbed关于删除记录恢复的问题.txt
    [20220909]bbed关于删除记录恢复的问题.txt--//快下班被别人问的关于删除记录使用bbed恢复的问题,我开始以为很快讲解完,删除记录oracle仅仅打上一个标识,实际的记录还存在......
  • elementUI中el-table多选表格数据删除后,再次删除时复选框依旧是选中状态
    查了文档得出在清空之后所选数据之后要另外添加一句。dataTable是table用ref添加的名字。clearSelection()是elementUI内部的方法。this.$refs.dataTable.clearSelectio......
  • 如何确保kafka topic已经删除
    问题描述TopicExistsException:Topic'xxx'ismarkedfordeletion.在写kafka工具时,有两个方法:批量创建topic和批量删除topic。运维操作一般是,批量删除一堆topic,然......
  • LeetCode 做题 简单【 删除排序链表中的重复元素】 链表
    【删除排序链表中的重复元素】给定一个已排序的链表的头 head , 删除所有重复的元素,使每个元素只出现一次 。返回 已排序的链表 。示例1:输入:head=[1,1,2]输......
  • oracle主键约束新增和删除
    目录oracle主键约束新增和删除1、新增主键2、删除主键oracle主键约束新增和删除主键命名规范:pk_开头,一个表不能有两个主键约束,但可以有多个检查约束1、新增主键语法al......
  • 域名和子域名间的cookie共享和修改、删除
    1.设置COOKIE1.1.一级域名一级域名只能设置domain为一级域名,不能设置为二级域名或者三级域名等等,否则cookie无法生成。    如:test.com能设置domain为test.co......