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

2022-05-20 14:02:00 浏览数 (3)

今天给一台华为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就一直作为虚拟光驱挂载着

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

0 人点赞