IPMI Konfiguration für Supermicro Server mittels ipmicfg
Dieser Artikel beschreibt das Tool ipmicfg zur Konfiguration von IPMI-Modulen für Supermicro Systeme. Alternativ kann - sofern der Server unter Linux betrieben wird - auch ipmitool (siehe Artikel IPMI Konfiguration unter Linux mittels ipmitool) oder FreeIPMI verwendet werden. Vor allem für ältere Systeme könnten auch noch die Tools IPnMAC und XGICFG von Interesse sein. Informationen sind im Artikel IPMI Konfiguration für Supermicro Systeme zu finden.
Sollte es Probleme bei der Konfiguration geben, kann es daran liegen, dass benötigte Module nicht geladen sind. Beachten Sie bitte hierzu folgenden Artikel: IPMI Init Script für Debian
Grundkonfiguration
IPMICFG Version 1.02 (Build 120820) bietet folgende Optionen:
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:~#
Um erstmalig das IPMI Modul zu konfigurieren ist es nur notwendig die IP Adresse anzugeben über die das IPMI Modul erreichbar sein soll.
ipmicfg -m ###.###.###.###
Danach ist das IPMI Modul über die Weboberfläche erreichbar.
Factory Default Einstellungen
Um das IPMI Modul auf die Default Einstellungen zu setzen geben Sie bitte
ipmicfg -fd
ein.
Bitte beachten Sie das alle Einstellungen inkl. aller Benutzer gelöscht werden. Außerdem ist nach dem Reset der DHCP Server eingeschaltet.
Probleme mit verschobenen Sensor Werten
Unter Umständen kann es vorkommen das einige Sensor Werte Falsch oder gar nicht ausgelesen werden.
Um das Problem zu beheben führen Sie bitte folgende Schritte durch:
Fehlerhafte IPMI Sensoren durch vollständige Initialisierung des IPMI Moduls richtigstellen
Befehlsreferenz
IP und MAC Adresse anzeigen
ipmicfg -m
IP Adresse setzen
ipmicfg -m ###.###.###.###
MAC Adresse setzen
ipmicfg -a ##:##:##:##:##:##
Subnet Maske anzeigen
ipmicfg -k
Subnet Maske setzen
ipmicfg -k ###.###.###.###
DHCP einschalten
ipmicfg -dhcp on
DHCP ausschalten
ipmicfg -dhcp off
Gateway IP Adresse anzeigen
ipmicfg -g
Gateway IP Adresse setzen
ipmicfg -g ###.###.###.###
BMC Cold reset
ipmicfg -r
Werkseinstellungen wiederherstellen
ipmicfg -fd
Enable the Gratuitous ARP
ipmicfg -garp on
Disable the Gratuitous ARP
ipmicfg -garp off
Download ipmicfg
Sollte das ipmicfg auf dem System noch nicht installiert sein, kann es über den Download-Bereich der Thomas-Krenn.AG heruntergeladen werden. Wählen Sie dazu ihr betreffendes Mainboard aus.
Bei Supermicro ist es hier erhältlich:
Autor: Benjamin Bayer Benjamin Bayer ist seit 2007 bei Thomas-Krenn tätig. Dabei hat er sich vor allem auf Virtualisierung spezialisiert. Nach fast acht Jahren im Technischen Support wechselte er im September 2015 in das Produktmanagement um dort seine Erfahrung mit einzubringen. Als Ausgleich zum Büro-Alltag ist Benjamin gerne mit dem Mountainbike unterwegs oder entspannt bei einem guten Buch. |