请选择 进入手机版 | 继续访问电脑版

设为首页 收藏本站
思科服务支持社区 点击关注
思科服务支持社区

  
 找回密码
 立即注册

扫一扫,访问微社区

搜索
热搜: 邮件服务器
查看: 671|回复: 1

【原创】思科Nexus 9000交换机密码恢复

[复制链接]
发表于 2017-12-19 14:32:09 | 显示全部楼层 |阅读模式
在日常工作、或者经常性的设备测试,经常会遇到忘记登录密码这种尴尬的事情,遇到这种情况也不可怕,不要慌,我们也有相关的应对方法。
CISCO SWITCH Ver7.17
Device detected on 0:6:0 after 0 msecs  
Device detected on 0:1:1 after 0 msecs  
Device detected on 0:1:0 after 0 msecs  
MCFrequency 1600Mhz
Relocated to memory
Detected CISCO IOFPGA
Donner Present
MIFPGA Present
Code Signing Results:                                    0x0
Using Upgrade FPGA
Booting from Primary Bios
FPGA Revison        : 0x3
FPGA ID             : 0x1399840
FPGA Date           : 0x20140828
Power Debug Register: 0x0
Reset Cause Register: 0x80000000
Boot Ctrl Register  : 0xe0ff
FPGA Update Status  : 0x20
Detected CISCO MIFPGA
Version 2.16.1240. Copyright (C) 2013 American Megatrends, Inc.                 
Board type  2
IOFPGA @ 0xc8000000
SLOT_ID @ 0xf
Aborting config file read and autoboot
No autoboot or failed autoboot. falling to loader
按住CTRL+C
输入如下命令
loader > cmdline recoverymode=1                                               
启动kickstart
loader > boot n9000-dk9.7.0.3.I1.1.bin        注意:此步骤可以通过dir命令查看当前的版本                                
Booting n9000-dk9.7.0.3.I1.1.bin
Trying diskboot
Filesystem type is ext2fs, partition type 0x83
Image valid


Image Signature verification was Successful.

INIT: version 2Loading IGB driver ...
Installing SSE module ... done
Creating the sse device node ... done
Installing CCTRL driver for card_type 21 ...
Checking SSD firmware ...
Model=Micron_M550_MTFDDAT064MAY, FwRev=MU01, SerialNo=MSA183101K1

Checking all filesystems.......
Installing SPROM driver ...
Installing default sprom values ...
done.Configuring network ...
Installing veobc ...
Installing OBFL driver ...
blogger: nothing to do.
..done Tue Dec 19 05:15:51 UTC 2017
tune2fs 1.35 (28-Feb-2004)
Setting reserved blocks percentage to 0 (0 blocks)
Starting portmap daemon...
creating NFS state directory: done
starting 8 nfsd kernel threads: done
starting mountd: done
starting statd: done
Saving image for img-sync ...
Loading system software
INIT: Sending processes the TERM signal
Bad terminal type: "linux". Will assume vt100.
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (C) 2002-2015, Cisco and/or its affiliates.
All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under their own
licenses, such as open source.  This software is provided "as is," and unless
otherwise stated, there is no warranty, express or implied, including but not
limited to warranties of merchantability and fitness for a particular purpose.
Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or
GNU General Public License (GPL) version 3.0  or the GNU
Lesser General Public License (LGPL) Version 2.1 or
Lesser General Public License (LGPL) Version 2.0.
A copy of each such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://opensource.org/licenses/gpl-3.0.html and
http://www.opensource.org/licenses/lgpl-2.1.php and
http://www.gnu.org/licenses/old-licenses/library.txt.
switch(boot)# conf t
Enter configuration commands, one per line.  End with CNTL/Z.
switch(boot)(config)#
switch(boot)(config)# admin-password cisco@123
WARNING! Enabling local authentication for login through console due to password recovery
switch(boot)(config)#
switch(boot)(config)# exit
switch(boot)# load-nxos
Uncompressing system image: package:/isanboot/bin/images/sys Tue Dec 19 05:16:39 UTC 2017
blogger: nothing to do.


正常启动后,就可以使用修改后的密码进入交换机了,并且配置不会更改

  • 1
  • 2
  • 3
  • 4
  • 5
  • 1
  • 2
  • 3
  • 4
  • 5
平均得分4 (3 评价)
发表于 2017-12-20 08:33:49 | 显示全部楼层
  • 1
  • 2
  • 3
  • 4
  • 5
  • 1
  • 2
  • 3
  • 4
  • 5
平均得分2 (1 评价)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver | 思科服务支持社区  

GMT+8, 2018-7-17 23:20 , Processed in 0.090758 second(s), 31 queries .

京ICP备09041801号-187

版权所有 :copyright:1992-2019 思科系统  重要声明 | 保密声明 | 隐私权政策 | 商标 |

快速回复 返回顶部 返回列表