IPMI需要使用必须先配置IP和用户名密码,一般通过开机进入BIOS来配置,如果未配置IPMI的服务器不能重启,那么可以通过ipmicfg这个工具在linux系统内进行配置,非常有用的工具!
#下载当前ftp的IPMICFG目录下最新版本 wget ftp://ftp.supermicro.com/utility/IPMICFG/IPMICFG_1.26.0_20161227.zip unzip IPMICFG_1.26.0_20161227.zip mv IPMICFG_1.26.0_20161227 /usr/local/IPMICFG ln -s /usr/local/IPMICFG/Linux/64bit/IPMICFG-Linux.x86_64 /usr/local/bin/ipmicfg
#Configur IPMI network settings. ipmicfg -dhcp off ipmicfg -k <NETMASK> ipmicfg -m <IP> ipmicfg -g <GATEWAY>
#add a new user ipmicfg -user add <user id> <user name> <password> <privilege> #Example ipmicfg -user add 5 user2 tbu6LrZqp2lqQvZj 4 #list users ipmicfg -user list #set password ipmicfg –user setpw <user id> <password> #Example ipmicfg –user setpwd 2 <password> #delete user ipmicfg -user del <user id> #Example ipmicfg -user del 5
#显示系统传感器的各种数据 ipmicfg -sdr
ipmicfg -r
# ipmicfg –fru BDT 201211121631 Chassis Type (CT) = Unknown(02h) Chassis Part number (CP) = Chassis Serial number (CS) = 0123456789 Board Mfg. Date/Time(BDT) = 2012/11/12 16:31:00 (DF 5D 87) Board Manufacturer (BM) = Supermicro Board Product Name (BPN) = X9DRD-iF Board Serial number (BS) = 0123456789 Board Part number (BP) = Product Manufacturer (PM) = Supermicro Product Name (PN) = X9DRD-iF Product Part/Model number (PPM) = Product Version (PV) = Product Serial number (PS) = 0123456789 Product Asset Tag (PAT) = NOTE: We highly discouraging changing the chassis, board, and product serial numbers as they should already be pre-configured by your hosting provider.