Konfiguracja IPMI w serwerach Supermicro za pomocą ipmicfg
Artykuł ten opisuje ipmicfg za pomocą, którego możliwe jest przeprowadzenie konfiguracji modułu IPMI w systemach firmy Supermicro. Alternatywnie - jeżeli system pracuje pod Linuksem - może również do tego zostać wykorzystany ipmitool (vide artykuł Konfiguracja IPMI pod Linuksem). Przede wszystkim dla starszych systemów również interesujące mogą być IPnMAC i XGICFG. Dalsze informacje na ich temat znajdują się w artykule Konfiguracja IPMI w systemach Supermicro.
Konfiguracja podstawowa
IPMICFG w wersji 1.02 (Build 120820) oferuje następujące opcje:
root@test:~# ./ipmicfg-linux.x86_64.static IPMICFG Version 1.14.3 (Build 130725) Copyright 2013 Super Micro Computer, Inc. Usage: IPMICFG params (Example: IPMICFG -m 192.168.1.123) -m Show IP and MAC. -m IP Set IP (format: ###.###.###.###). -a MAC Set MAC (format: ##:##:##:##:##:##). -k Show Subnet Mask. -k Mask Set Subnet Mask (format: ###.###.###.###). -dhcp Get the DHCP status. -dhcp on Enable the DHCP. -dhcp off Disable the DHCP. -g Show Gateway IP. -g IP Set Gateway IP (format: ###.###.###.###). -r BMC cold reset. option: -d | Detected IPMI device for BMC reset. -garp on Enable the Gratuitous ARP. -garp off Disable the Gratuitous ARP. -fd Reset to the factory default. option: -d | Detected IPMI device for BMC reset. -fdl Reset to the factory default. (Clean LAN) option: -d | Detected IPMI device for BMC reset. -fde Reset to the factory default. (Clean FRU & LAN) option: -d | Detected IPMI device for BMC reset. -ver Get Firmware revision. -vlan Get VLAN status. -vlan on <VLANtag> Enable the VLAN and set the VLAN tag. If VLANtag is not given it uses previously saved value. -vlan off Disable the VLAN. -selftest Checking and reporting on the basic health of BMC. -raw Send a RAW IPMI request and print response. Format: NetFn Cmd [Data1 ... DataN] -fru info Show FRU inventory area Info. -fru list Show all FRU values. -fru cthelp Show chassis type code. -fru help Show help of FRU Write. -fru <Field> Show FRU field value. -fru <Field> <Value> Write FRU. -fru 1m Update FRU Product Manufacturer from DMITable. -fru 1p Update FRU Product Prodcut Name from DMITable. -fru 1s Update FRU Product S/N from DMITable. -fru 2m Update FRU Board Manufacturer from DMITable. -fru 2p Update FRU Board Product Name from DMITable. -fru 2s Update FRU Board S/N from DMITable. -fru 3s Update FRU Chassis S/N from DMITable. -fru backup <file> Backup FRU to file <Binary format>. -fru restore <file> Restore FRU from file <Binary format>. -fru tbackup <file> Backup FRU to file <Text format>. -fru trestore <file> Restore FRU from file <Text format>. -fru ver <V1> <V2> Get/Set FRU version. (V1 V2 are BCD format) -sel info Show SEL info. -sel list Show SEL records. -sel del Delete all SEL records. -sel raw Show SEL raw data. -sdr Show SDR records and reading. -sdr del <SDR ID> Delete SDR record. -sdr ver <V1> <V2> Get/Set SDR version. (V1 V2 are BCD format) -nm nmsdr Display NM SDR. -nm seltime Get SEL time. -nm deviceid Get ME Device ID. -nm reset Reboots ME. -nm reset2default Force ME reset to Default. -nm updatemode Force ME to Update Mode. -nm selftest Get Self Test Results. -nm listimagesinfo List ME Images information. -nm oemgetpower OEM Power command for ME. -nm oemgettemp OEM Temp. command for ME. -nm pstate Get Max allowed CPU P-State. -nm tstate Get Max allowed CPU T-State. -nm cpumemtemp Get CPU/Memory temperature. -nm hostcpudata Get host CPU data. -fan Get Fan Mode. -fan <mode> Set Fan Mode. -pminfo Power supply PMBus health. -psfruinfo Power supply FRU health. -psbbpinfo Battery backup power status. -autodischarge <module> <day> Set auto discharge by days. -discharge <module> Manually discharge battery. -user list List user privilege information. -user help Show user privilege code. -user add <user id> <user name> <password> <privilege> Add user. -user del <user id> Delete user. -user level <user id> <privilege> Update user privilege. -user setpwd <user id> <password> Update user password. -conf upload <file> <option> Upload IPMI configuration form binary file. option: -p | Bypass warning message. -conf download <file> Download IPMI configuration to binary file. -conf tupload <file> <option> Upload IPMI configuration from text file. option: -p | Bypass warning message. -conf tdownload <file> Download IPMI configuration to text file. -clrint Clear chassis intrusion. root@test:~#
Aby móc po raz pierwszy rozpocząć konfiguracje modułu IPMI konieczne jest określenie adresu IP, pod którym ma on (moduł) być osiągalny.
ipmicfg -m ###.###.###.###
Następnie moduł IPMI jest osiągalny za pośrednictwem interfejsu webowego.
Ustawienia fabryczne (Factory Default)
W celu przywrócenie ustawień fabrycznych należy podać
ipmicfg -fd
Proszę zwrócić uwagę, że wszystkie dotychczasowe ustawienia i skonfigurowani konta użytkowników zostaną skasowane. Ponadto po restarcie włączony jest ponownie serwer DHCP.
Problemy z niewłaściwymi wartościami sensorów
W niektórych przypadkach może się zdarzyć, że wartości niektórych sensorów nie są w ogóle lub niewłaściwie odczytane.
Aby rozwiązać ten problem należy przeprowadzić następujące kroki:
1. Przywrócić ustawienia fabryczne modułu.
ipmicfg -fd
2. Wyłączyć serwer i odłączyć od zasilania na ok. 5 minut.
3. Przeprowadzić ponownie konfiguracje modułu IPMI.
ipmicfg -m ###.###.###.###
Polecenia
odczyt adresu IP i MAC
ipmicfg -m
określenie adresu IP
ipmicfg -m ###.###.###.###
określenie adresu MAC
ipmicfg -a ##:##:##:##:##:##
odczyt maski podsieci
ipmicfg -k
określenie maski podsieci
ipmicfg -k ###.###.###.###
włączenie DHCP
ipmicfg -dhcp on
wyłączenie DHCP
ipmicfg -dhcp off
odczyt adresu IP bramki sieciowej (Gateway)
ipmicfg -g
określenie adresu IP Gateway
ipmicfg -g ###.###.###.###
zimny (cold) reset BMC
ipmicfg -r
przywrócenie ustawień fabrycznych
ipmicfg -fd
włączenie Gratuitous ARP
ipmicfg -garp on
wyłączenie Gratuitous ARP
ipmicfg -garp off
Download ipmicfg
Jeżeli ipmicfg nie jest zainstalowane w systemie to może zostać pobrane z działu downloads sklepu Thomas-Krenn.AG: