IPMI (Intelligent Platform Management Interface) เป็นอินเทอร์เฟซจัดการฮาร์ดแวร์อิสระจาก OS/BIOS/CPU บนเซิร์ฟเวอร์ SuperMicro ช่วยให้ควบคุม พัก/รีสตาร์ท, Mount ISO, KVM-over-IP, ตรวจสอบอุณหภูมิ/พัดลม/ไฟฟ้า ได้จากระยะไกล
ตั้งค่า IPMI ผ่าน BIOS และ Web UI
- Boot Server กด DEL เข้า BIOS
- ไปเมนู IPMI > Update IPMI Lan Configuration = Yes, Configuration Address Source = Static
- ตั้ง IP Address, Subnet Mask, Gateway > F4 Save & Exit (Server จะ Reboot)
- เข้าถึง IPMI IP ผ่าน Browser → Login: ADMIN / ADMIN (ค่าเริ่มต้น) → เปลี่ยน Password ทันที หรือสร้าง User ใหม่ใน Configuration > Users
ฟีเจอร์หลักใน Web UI:
- Virtual Media > CD-ROM Image – Mount ISO จาก Samba/NFS/HTTP เพื่อติดตั้ง OS
- Remote Control > Console Redirection – Java iKVM Viewer (KVM-over-IP)
- Maintenance > Unit Reset – รีสตาร์ดการ์ด IPMI
- Server Health > Sensor Readings – ดู CPU Temp, Fan Speed, Voltage, PSU Status
Bug Fix KVM Console หายหลัง OS Boot (CentOS 7 + KVM): เพิ่ม Kernel Parameter nomodeset: grubby --args "nomodeset" --update-kernel /boot/vmlinuz-`uname -r`
ใช้งาน IPMICFG (Command Line Tool)
ดาวน์โหลดจาก SuperMicro FTP: wget ftp://ftp.supermicro.com/utility/IPMICFG/IPMICFG_1.30.0_build.190710.zip แล้ว Unzip และ Symlink: ln -s /root/IPMI*/Linux/64bit/IPMICFG-Linux.x86_64 /usr/local/sbin/ipmicfg
คำสั่งที่ใช้บ่อย:
ipmicfg -help # Help
ipmicfg -m # Show IP/MAC
ipmicfg -k # Show Subnet Mask
ipmicfg -g # Show Gateway
ipmicfg -fd # Factory Reset
ipmicfg -user list # List Users
ipmicfg -m 192.168.0.120 # Set IP
ipmicfg -k 255.255.255.0 # Set Mask
ipmicfg -g 192.168.0.1 # Set Gateway
ipmicfg -user add 6 ipmiusr P@ssw0_d 4 # Add User ID 6, Admin Privilege (4)
ipmicfg -user setpwd 6 NewPass # Change Password
ipmicfg -r # Reset IPMI Card
ipmicfg -hostname newname # Set Hostname
Monitor ฮาร์ดแวร์ด้วย IPMICFG
# PSU Info
ipmicfg -pminfo
# CPU Temperature
ipmicfg -nm oemgettemp
# Fan Mode
ipmicfg -fan # Show current mode (0=Standard, 1=Full, 3=PUE2 Optimal, 4=Heavy IO)
ipmicfg -fan 3 # Set to PUE2 Optimal
# Device ID / Firmware
ipmicfg -nm deviceid
# All Sensors (SDR)
ipmicfg -sdr
เหมาะสำหรับ Scripting/Monitoring ร่วมกับ Nagios, Zabbix, Prometheus (ผ่าน IPMI Exporter)