当前位置:网站首页>Use ipmitool to configure BMC network and user information of X86 server

Use ipmitool to configure BMC network and user information of X86 server

2022-07-01 02:33:00 Count words and lines

When you don't know the server BMC(Baseboard Management Controller) Management of IP And user information , You can install on the system where the server is installed ipmitool Tools , Then configure directly through in band BMC Network and IP Etc , There is no need to restart the machine to find BMC Steps for setting the configuration interface .

The following example is configured in band , If you want to configure through out of band , stay ipmitool Add... After the order “–H BMCip –U username –P password” Equal parameter .


1. Set up BMC Internet information

1) Show BMC Of IP Address information ( Other channel numbers such as 2,3,4 Wait to view the information of the channels that the device can use , Usually configure channels 1, In the following order 1 All represent configuration channels 1)
# ipmitool lan print 1
# ipmitool channel info 1

2) Set up channels 1 Using static IP Address .
# ipmitool lan set 1 ipsrc static

3) Set up BMC Of IP Address .
# ipmitool lan set 1 ipaddr 192.168.100.142

4) Set up BMC The subnet mask for .
# ipmitool lan set 1 netmask 255.255.255.0

5) Set up IPMI Gateway for .
# ipmitool lan set 1 defgw ipaddr 192.168.100.254

6) confirm BMC Of IP Address information
# ipmitool lan print 1

Set in Progress         : Set Complete
Auth Type Support       : MD5 PASSWORD 
Auth Type Enable        : Callback : MD5 PASSWORD 
                        : User     : MD5 PASSWORD 
                        : Operator : MD5 PASSWORD 
                        : Admin    : MD5 PASSWORD 
                        : OEM      : 
IP Address Source       : Static Address
IP Address              : 192.168.100.142
Subnet Mask             : 255.255.255.0
MAC Address             : 00:1e:67:54:6d:ca
SNMP Community String   : public
IP Header               : TTL=0x00 Flags=0x00 Precedence=0x00 TOS=0x00
BMC ARP Control         : ARP Responses Enabled, Gratuitous ARP Disabled
Gratituous ARP Intrvl   : 0.0 seconds
Default Gateway IP      : 192.168.100.254
Default Gateway MAC     : 00:00:00:00:00:00
Backup Gateway IP       : 0.0.0.0
Backup Gateway MAC      : 00:00:00:00:00:00
802.1q VLAN ID          : Disabled
802.1q VLAN Priority    : 0
RMCP+ Cipher Suites     : 0,1,2,3,4,6,7,8,9,11,12,13,15,16,17,18
Cipher Suite Priv Max   : caaaaaaaaaaaaaa
                        :     X=Cipher Suite Unused
                        :     c=CALLBACK
                        :     u=USER
                        :     o=OPERATOR
                        :     a=ADMIN
                        :     O=OEM
Bad Password Threshold  : Not Available

2. Set up BMC Users of

1) List BMC User information .
# ipmitool user list 1

ID  Name             Callin  Link Auth  IPMI Msg   Channel Priv Limit
1                    false   false      true       ADMINISTRATOR
2   lenovo           false   true       true       ADMINISTRATOR
3   three            false   false      true       ADMINISTRATOR
4   test1            false   false      true       ADMINISTRATOR
5   test2            false   false      true       ADMINISTRATOR
6                    true    false      false      NO ACCESS
7                    true    false      false      NO ACCESS
8                    true    false      false      NO ACCESS
9                    true    false      false      NO ACCESS
10                   true    false      false      NO ACCESS
11                   true    false      false      NO ACCESS
12                   true    false      false      NO ACCESS
13                   true    false      false      NO ACCESS
14                   true    false      false      NO ACCESS
15                   true    false      false      NO ACCESS

2) Create new users ( You can directly change the password of the management user , Do not create new users )
# ipmitool user set name 6 test3 (6 Is one of the unused users listed in the above command ID Number )

3) Set the user's password
# ipmitool user set password 6 len0vO (6 Is the user test3 Users of ID Number )

4) Give permissions to the new user
# ipmitool channel setaccess 1 6 callin=on ipmi=on link=on privilege=4 (6 Is the user test3 Users of ID Number )

5) Check and confirm the user's information
# ipmitool user list 1

ID  Name             Callin  Link Auth  IPMI Msg   Channel Priv Limit
1                    false   false      true       ADMINISTRATOR
2   lenovo           false   true       true       ADMINISTRATOR
3   three            false   false      true       ADMINISTRATOR
4   test1            false   false      true       ADMINISTRATOR
5   test2            false   false      true       ADMINISTRATOR
6   test3            true    true       true       ADMINISTRATOR
7                    true    false      false      NO ACCESS
8                    true    false      false      NO ACCESS
9                    true    false      false      NO ACCESS
10                   true    false      false      NO ACCESS
11                   true    false      false      NO ACCESS
12                   true    false      false      NO ACCESS
13                   true    false      false      NO ACCESS
14                   true    false      false      NO ACCESS
15                   true    false      false      NO ACCESS

Good configuration BMC After the network and users of , You can log in to the management interface of the server through the browser , Daily management of equipment ( It is usually used for monitoring and fault diagnosis ).

原网站

版权声明
本文为[Count words and lines]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/182/202207010224281443.html