前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >使用ipmitool修改华为服务器iBMC密码

使用ipmitool修改华为服务器iBMC密码

作者头像
用户9314062
发布2022-05-20 14:02:00
4.1K0
发布2022-05-20 14:02:00
举报
文章被收录于专栏:LINUX开源玩家LINUX开源玩家

今天给一台华为2288H v5重装系统,发现iBMC和BIOS密码都不可用。

在华为官网搜到可以用ipmitool修改iBMC密码,试之,果然,记下。

(顺便说下v5默认值, IP:192.168.2.100,用户:Administrator,密码:Admin@90000)

(再顺便说下v3默认值, 用户:root,密码:Huawei12#$)

原来的系统是debian 9。

1. 查找ipmitool工具

代码语言:javascript
复制
# apt search ipmitool
Sorting... Done
Full Text Search... Done
hobbit-plugins/oldstable 20170219 all
  plugins for the Xymon network monitor
  
ipmitool/oldstable 1.8.18-3 amd64
  utility for IPMI control with kernel driver or LAN interface (daemon)

2. 安装ipmitool

代码语言:javascript
复制
# apt install ipmitool -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  freeipmi-common libfreeipmi16 libopenipmi0 libsensors4 libsnmp-base libsnmp30 openipmi
Suggested packages:
  freeipmi-tools lm-sensors snmp-mibs-downloader
The following NEW packages will be installed:
  freeipmi-common ipmitool libfreeipmi16 libopenipmi0 libsensors4 libsnmp-base libsnmp30 openipmi
0 upgraded, 8 newly installed, 0 to remove and 67 not upgraded.
Need to get 6,310 kB of archives.
After this operation, 16.7 MB of additional disk space will be used.
......

3. 安装完成后查看使用帮助

代码语言:javascript
复制
# ipmitool user 
Not enough parameters given.
User Commands:
               summary      [<channel number>]
               list         [<channel number>]
               set name     <user id> <username>
               set password <user id> [<password> <16|20>]
               disable      <user id>
               enable       <user id>
               priv         <user id> <privilege level> [<channel number>]
                     Privilege levels:
                      * 0x1 - Callback
                      * 0x2 - User
                      * 0x3 - Operator
                      * 0x4 - Administrator
                      * 0x5 - OEM Proprietary
                      * 0xF - No Access
               test         <user id> <16|20> [<password]>

4. 查看用户名及其ID,可见默认用户Adminstrator存在,其ID为2

代码语言:javascript
复制
# ipmitool user list 1
ID  Name       Callin  Link Auth  IPMI Msg   Channel Priv Limit
1                    true    true       true       NO ACCESS
2   Administrator    true    true       true       ADMINISTRATOR
3   fc2mgmt          true    true       true       ADMINISTRATOR
4                    true    true       true       NO ACCESS
5                    true    true       true       NO ACCESS
......

5. 修改用户密码

代码语言:javascript
复制
# ipmitool user set password 2 Huawei12#$ 16
Set User Password command successful (user 2)

6. 测试密码

代码语言:javascript
复制

# ipmitool user test 2 16 Huawei12#$
Success

7. 登录

https://192.168.2.100/index.php

第一次登录会要求修改密码

8. 安装系统

在远程控制台里面挂载ISO镜像文件,选择后记得点击‘连接’

之后只要不断开这个ISO就一直作为虚拟光驱挂载着

边安装边写,忘了初始界面截图,这时候安装差不多了

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2020-03-19,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 LINUX开源玩家 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档