Ipmitool

Z wiki
Skočit na navigaci Skočit na vyhledávání

The following example will show how to configure IPMI on a Linux server. The /dev/ipmi0 device file must exist so that configuration can be carried out. If it does not exist, you should install official package:

apt install ipmitool

Static IP

ipmitool lan set 1 ipsrc static

Set IP addr

ipmitool lan set 1 ipaddr xxx.yyy.zzz.yyy

Set net mask

ipmitool lan set 1 netmask 255.255.254.0

Set gateway

ipmitool lan set 1 defgw ipaddr 172.16.140.1

Set pwd for usr 2

ipmitool user set password 2 pwd

Enable usr 2

ipmitool user enable 2

Disable usr 3

ipmitool user disable 3

LAN mode dedicated

ipmitool raw 0x30 0x70 0x0c 1 0

LAN mode onboard/shared

ipmitool raw 0x30 0x70 0x0c 1 1

Print LAN options

ipmitool lan print 1