Шпаргалка по ipmi
Чтение данных о состоянии:
ipmitool -I lan -H 192.168.77.7 -U ADMIN -P <pass> sdr ipmitool -I lan -H 192.168.77.7 -U ADMIN -P <pass> sdr type Temperature ipmitool -I lan -H 192.168.77.7 -U ADMIN -P <pass> sdr type Fan ipmitool -I lan -H 192.168.77.7 -U ADMIN -P <pass> sdr type "Power Unit" ipmitool -I lan -H 192.168.77.7 -U ADMIN -P <pass> sdr type Voltage ipmitool -I lan -H 192.168.77.7 -U ADMIN -P <pass> sdr type Processor ipmitool -I lan -H 192.168.77.7 -U ADMIN -P <pass> sdr type list
Работа с питанием:
ipmitool -I lan -H 192.168.77.7 -U root -P <pass> chassis power status ipmitool -I lan -H 192.168.77.7 -U root -P <pass> chassis power off ipmitool -I lan -H 192.168.77.7 -U root -P <pass> chassis power on
Конфигурация сети:
вывести конфигурацию:
ipmitool lan print 1
сконфигурировать сеть:
ipmitool lan set 1 ipsrc [ static | dhcp ] ipmitool lan set 1 ipaddr {YOUR DESIRED IP} ipmitool lan set 1 netmask 255.255.255.0 ipmitool lan set 1 defgw ipaddr {YOUR DESIRED GW}
Работа с пользователями:
показать список:
ipmitool user list 1
добавить юзера:
ipmitool user set name 2 admin ipmitool user set password 2 ipmitool channel setaccess 1 2 link=on ipmi=on callin=on privilege=4 #privilege=4 -> ADMINISTRATOR #privilege=3 -> OPERATOR ipmitool user enable 2