Install ipmi on CentOS

Source: Internet
Author: User
Tags egrep

Install ipmi on CentOS
CentOSrelease6.2(Final)1. install required software1. query the ipmi installation packageyumlist|grepipmiipmitool.x86_641.8.11-13.el6.1@updatesipmitool.x86_641.8.11-14.el6_4.1update2. Install ipmitoolyum-yinstallipmitool3. view the installed ipmi packagerpm-qa|grepipmiipmitool-1.8.11-13.el6.1.x86_644. Add the ipmi service to the startup ItemchkconfigipmionChoose either 5, 5.1, or 5.2.5.1)、ls/etc/rc3.d/S13ipmilrwxrwxrwx1rootroot14May616:26/etc/rc3.d/S13ipmi->../init.d/ipmi5.2)、chkconfig--list|grepipmiipmi0:off1:off2:on3:on4:on5:on6:off6. Load the ipmi Modulemodprobeipmi_si&&modprobeipmi_devintf&&modprobeipmi_msghandler7. view the modulelsmod|grepipmiipmi_si424010ipmi_devintf80490ipmi_msghandler359922ipmi_si,ipmi_devintf8. Start ipmi/etc/init.d/ipmistart2. Configure grub startup parameterscat/boot/grub/grub.conf|egrep-v"^#|^$"default=0timeout=5titleCentOS(2.6.32-220.el6.x86_64)root(hd0,0)kernel/boot/vmlinuz-2.6.32-220.el6.x86_64roroot=/dev/sda1selinux=0console=tty0console=ttyS1,115200roinitrd/boot/initramfs-2.6.32-220.el6.x86_64.imgPS: Add console = tty0console = ttyS1, 115200 in this configuration fileConsole = tty0console = ttyS1, 115200 parameters are passed to the kernel for serial port redirectionConsole = tty0 stands for display outputConsole = ttyS0 indicates directed to serial 1, and ttyS1 indicates directed to Serial 2115200 indicates the baud rate used for serial communication. The baud rate is the same as that set in bios.3. Use the ipmitool command to configure ipmi.1. View ipmi Informationipmitoollanprint12. Set BMCip as the remote management ip Addressipmitoollanset1ipaddr172.16.*.*3. connect to the target Terminalipmitool-Ilanplus-H172.16.1.-Uroot-P123456solactivate4. End the target Terminalipmitool-Ilanplus-H172.16.1.-Uroot-P123456soldeactivate5. Restart the target terminal.ipmitool-Ilanplus-H172.16.1.-Uroot-P123456powerreset6. View Power Supplyipmitool-Ilanplus-H172.16.1.-Uroot-P123456powerstatus7. bootipmitool-Ilanplus-H172.16.1.-Uroot-P123456poweron8. Shutdownipmitool-Ilanplus-H172.16.1.-Uroot-P123456poweroff9. Change the bios startup Item to network startup.ipmitool-Ilanplus-H172.16.1.-Uroot-P123456chassisbootdevpxe10. Set channel1 to allow accessipmitool-Iopenlanset1accesson11. Configure ipmi to Manage Usersipmitoolusersetname2rootipmitoolusersetpassword2"123456"12. obtain various monitoring values in the sensor and the monitoring thresholds for these values, including (CPU temperature, voltage, fan speed, power modulation module temperature, power supply voltage, and other information)ipmitool-Iopensdrlist(ipmitool-Iopensensor)13. display temperatureipmitoolsdrtypeTemperatureTemp|01h|ok|3.1|-56degreesCTemp|02h|ok|3.2|50degreesCTemp|05h|ok|10.1|42degreesCTemp|06h|ns|10.2|DisabledAmbientTemp|0Eh|ok|7.1|20degreesCPlanarTemp|0Fh|ok|7.1|37degreesCCPUTempIF|76h|ns|7.1|DisabledTemp|0Ah|ok|8.1|31degreesCTemp|0Bh|ns|8.1|DisabledTemp|0Ch|unc|8.1|45degreesCAmbientTemp|07h|ok|10.1|29degreesCAmbientTemp|08h|ns|10.2|DisabledYou can also use ipmitoolsdr.typePress ENTERipmitoolsdrtypeSensorTypes:TemperatureVoltageCurrentFanPhysicalSecurityPlatformSecurityProcessorPowerSupplyPowerUnitCoolingDeviceOtherMemoryDriveSlot/BayPOSTMemoryResizeSystemFirmwaresEventLoggingDisabledWatchdogSystemEventCriticalInterruptButtonModule/BoardMicrocontrollerAdd-inCardChassisChipSetOtherFRUCable/InterconnectTerminatorSystemBootInitiatedBootErrorOSBootOSCriticalStopSlot/ConnectorSystemACPIPowerStateWatchdogPlatformAlertEntityPresenceMonitorASICLANManagementSubsystemHealthBatterySessionAuditVersionChangeFRUState14. Exit ipmishift~.Ipmitool command parameter descriptionLan is used for remote access and power management.openFor local access. Lanplus is used for sol.3. inittab configuration (changed due to different versions)cat/etc/inittab|egrep-v"^#|^$"co:2345:respawn:/sbin/agettyttyS1115200vt100-navWhen setting ipmi, you must note that ttyS1 and ttyS0 change ttyS1 or ttyS0 as needed./etc/inittabHow does it take effect?If it takes effect, run initq (Qorqtellinittore-examinethe/etc/inittabfile.)psaux|grepttyroot11370.00.04072228ttyS1Ss+20130:00/sbin/agetty/dev/ttyS1115200vt100-navOr execute startttyS1

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.