故障处理之Cisco UCS6248密码恢复

客户打来电话说UCS Manager无法登录,提示用户名密码验证失败。火速赶到用户现场,发现无论是console还是WEB都无法登录,为今之计只有破门撬锁了!

通过查阅官方文档得知,UCS Manager密码恢复有两种方式:

第一、Standalone模式下的密码恢复

第二、Cluster模式下的密码恢复

由于用户这里是两台6248做的Cluster,所以在这里只能采用第二种方式,恢复方法如下:

Before You Begin
1 Physically connect a console port on one of the fabric interconnects to a computer terminal or console
server

开始之前找一根console线连接到console口上。

2 Obtain the following information:
The firmware kernel version on the fabric interconnect
The firmware system version

Which fabric interconnect has the primary leadership role and which is the subordinate

密码恢复前要获取三个重要信息:

第一、firmware kernel version

第二、firmware system version

第三、确定哪台6248是primary,哪台是subordinate

Tip To find this information, you can log in with any user account on the Cisco UCS domain.

文档中这句话有点意思,让我以任何一个用户登录到UCS Manager中然后获取上面的信息。我只想说:亲,我只有一个用户。

在这里获取上述信息有两种方式:

第一、通过重启6248,在重启过程中获得

第二、先不用急着获取firmware kernel和firmware system,继续往下走

Procedure
Step 1 Connect to the console port.
Step 2 For the subordinate fabric interconnect:
a) Turn off the power to the fabric interconnect.
b) Turn on the power to the fabric interconnect.
c) In the console, press one of the following key combinations as it boots to get the loader prompt:
Ctrl+l
Ctrl+Shift+r
You may need to press the selected key combination multiple times before your screen displays the loader
prompt.

通过console连接到那台subordinate上,然后关闭电源,再接通电源,启动设备,在重启过程中按下ctrl+l或是ctrl+shift+r,直到系统出现loader提示符为止。

Step 3 Power cycle the primary fabric interconnect:
a) Turn off the power to the fabric interconnect.
b) Turn on the power to the fabric interconnect.
Step 4 In the console, press one of the following key combinations as it boots to get the loader prompt:
Ctrl+l
Ctrl+Shift+r

You may need to press the selected key combination multiple times before your screen displays the loader
prompt.

跟上面同样的操作,通过console连接到那台primary上,然后关闭电源,再接通电源,启动设备,在重启过程中按下ctrl+l或是ctrl+shift+r,直到系统出现loader提示符为止。

Step 5 Boot the kernel firmware version on the primary fabric interconnect.
loader > boot /installables/switch/kernel_firmware_version
Example:
loader > boot /installables/switch/ucs-6100-k9-kickstart.4.1.3.N2.1.0.11.gbin

在loader提示符下手动引导firmware kernel,前面说了不着急获取kernel和system的信息。在这里可以通过dir命令查看获取,如下:

loader> dir                                                                    
bootflash:
  lost+found
  ucs-6100-k9-kickstart.5.0.3.N2.2.1s.bin
  ucs-6100-k9-system.5.0.3.N2.2.1s.bin

  chassis.img
  pnuos
  nuova-sim-mgmt-nsg.0.1.0.001.bin
  chassis2.img
  fexth.bin
  installables
  sysdebug
  distributables_hdr

感觉还是通过dir命令获取方便。

Step 6 Enter config terminal mode.
Fabric(boot)# config terminal
Step 7 Reset the admin password.
Fabric(boot)(config)# admin-password password
Choose a strong password that includes at least one capital letter and one number. The password cannot be
blank.
The new password displays in clear text mode.

通过上面两条命令修改admin-password的密码

Step 8 Exit config terminal mode and return to the boot prompt.
Step 9 Boot the system firmware version on the primary fabric interconnect.
Fabric(boot)# load /installables/switch/system_firmware_version
Example:
Fabric(boot)# load /installables/switch/ucs-6100-k9-system.4.1.3.N2.1.0.211.bin
Step 10 After the system image loads, log in to Cisco UCS Manager.

密码修改完成之后,回到fabric(boot)提示符下,载入firmware system文件,载入后就可能登录到UCS Manager了。

Step 11 In the console for the subordinate fabric interconnect, do the following to bring it up:
a) Boot the kernel firmware version on the subordinate fabric interconnect.
loader > boot /installables/switch/kernel_firmware_version
b) Boot the system firmware version on the subordinate fabric interconnect.
Fabric(boot)# load /installables/switch/system_firmware_version

回到subordinate中,先手动引导firmware kernel再载入firmware system,重启完成后,密码恢复工作就完成了。


******************************************************************************************************

在我这里我说一下我在恢复过程中出现的问题:

1、我在primary上载入firmware system后,系统并没有载入,仍然停留在原提示符下。我感觉可能我哪里做的有问题。

2、在subordinate上载入firmware system后,系统正常载入,并提示进入cluster模式,但是启动后,用重置的密码仍然不能登录。

3、我怀疑primary有问题,于是手动重启了primary,重启后用重置的密码可以登录,但是subordinate仍然不能登录。

4、于是我又按照密码恢复的步骤对subordinate再次进行了相同的操作,当重新载入firmware system之后,这次用重置的密码可以登录了。

到这里console可以登录进去了,但是问题又来了,故事似乎并没有结束,通过WEB方式仍然不能登录,为什么?难道密码有两套么?

既然可以通过console进去,那么肯定有办法,通过WEB方式进去。于是经过一翻查阅,有了下面的方法:


UCS-FI-6248UP-A# scope security 
UCS-FI-6248UP-A /security # create local-user guanliyuan
UCS-FI-6248UP-A /security/local-user* # set account-status active 
UCS-FI-6248UP-A /security/local-user* # set password 
Enter a password:
Confirm the password:
UCS-FI-6248UP-A /security/local-user* # 
UCS-FI-6248UP-A /security/local-user* # create role admin

UCS-FI-6248UP-A /security/local-user* # commit-buffer 


上面命令的主要作用就是建立一个本地用户guanliyuan,激活用户、设置密码,为用户赋予admin权限,保存。完成之后就可以通过guanliyuan来WEB管理UCS Manager了!


到这里这个密码恢复工作才算真正完成了!










本文转自 弯月楼主 51CTO博客,原文链接:http://blog.51cto.com/05wylz/1682846,如需转载请自行联系原作者
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Go语言(也称为Golang)是由Google开发的一种静态强类型、编译型的编程语言。它旨在成为一门简单、高效、安全和并发的编程语言,特别适用于构建高性能的服务器和分布式系统。以下是Go语言的一些主要特点和优势: 简洁性:Go语言的语法简单直观,易于学习和使用。它避免了复杂的语法特性,如继承、重载等,转而采用组合和接口来实现代码的复用和扩展。 高性能:Go语言具有出色的性能,可以媲美C和C++。它使用静态类型系统和编译型语言的优势,能够生成高效的机器码。 并发性:Go语言内置了对并发的支持,通过轻量级的goroutine和channel机制,可以轻松实现并发编程。这使得Go语言在构建高性能的服务器和分布式系统时具有天然的优势。 安全性:Go语言具有强大的类型系统和内存管理机制,能够减少运行时错误和内存泄漏等问题。它还支持编译时检查,可以在编译阶段就发现潜在的问题。 标准库:Go语言的标准库非常丰富,包含了大量的实用功能和工具,如网络编程、文件操作、加密解密等。这使得开发者可以更加专注于业务逻辑的实现,而无需花费太多时间在底层功能的实现上。 跨平台:Go语言支持多种操作系统和平台,包括Windows、Linux、macOS等。它使用统一的构建系统(如Go Modules),可以轻松地跨平台编译和运行代码。 开源和社区支持:Go语言是开源的,具有庞大的社区支持和丰富的资源。开发者可以通过社区获取帮助、分享经验和学习资料。 总之,Go语言是一种简单、高效、安全、并发的编程语言,特别适用于构建高性能的服务器和分布式系统。如果你正在寻找一种易于学习和使用的编程语言,并且需要处理大量的并发请求和数据,那么Go语言可能是一个不错的选择。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值