IPMI (Intelligent platform management interface)

Source: Internet
Author: User
Tags cipher suite
4.3. ipmitool-utility for controlling IPMI-enabled devices4.3.1. ipmitool4.3.1.1. Ubuntu

Determine whether the hardware supports IPMI

[email protected]:~$ sudo dmidecode |grep -C 5 IPMI[sudo] password for neo:Handle 0x2000, DMI type 32, 11 bytesSystem Boot Information        Status: No errors detectedHandle 0x2600, DMI type 38, 18 bytesIPMI Device Information        Interface Type: KCS (Keyboard Control Style)        Specification Version: 2.0        I2C Slave Address: 0x10        NV Storage Device: Not Present        Base Address: 0x0000000000000CA8 (I/O)

 

sudo apt-get install openipmisudo apt-get install ipmitoolsudo mkdir -p /var/lock/subsys/ipmi$ sudo /etc/init.d/openipmi start * Starting ipmi drivers                  [ OK ]
4.3.1.2. centos
# yum search ipmi========================================== Matched: ipmi ===========================================OpenIPMI.x86_64 : OpenIPMI (Intelligent Platform Management Interface) library and toolsOpenIPMI-devel.i386 : The development environment for the OpenIPMI project.OpenIPMI-devel.x86_64 : The development environment for the OpenIPMI project.OpenIPMI-gui.x86_64 : IPMI graphical user interface toolOpenIPMI-libs.i386 : The OpenIPMI runtime librariesOpenIPMI-libs.x86_64 : The OpenIPMI runtime librariesOpenIPMI-perl.x86_64 : OpenIPMI Perl language bindingsOpenIPMI-python.x86_64 : OpenIPMI Python language bindingsOpenIPMI-tools.x86_64 : OpenIPMI utilities and scripts from ipmitoolcollectd-ipmi.x86_64 : IPMI module for collectdfreeipmi.i386 : FreeIPMIfreeipmi.x86_64 : FreeIPMIfreeipmi-bmc-watchdog.x86_64 : FreeIPMI BMC watchdogfreeipmi-devel.i386 : Development package for FreeIPMIfreeipmi-devel.x86_64 : Development package for FreeIPMIfreeipmi-ipmidetectd.x86_64 : IPMI node detection monitoring daemonopenhpi.i386 : openhpi Hardware Platform Interface (HPI) library and toolsopenhpi.x86_64 : openhpi Hardware Platform Interface (HPI) library and toolsripmime.x86_64 : Extract attachments out of a MIME encoded email packageswatchdog.x86_64 : Software and/or Hardware watchdog daemon# yum install OpenIPMI OpenIPMI-tools -y
4.3.2. Sensor
# ipmitool -I open sensor list
4.3.3. ipmitool Shell
# ipmitool shell

MC info

ipmitool> mc infoDevice ID                 : 32Device Revision           : 0Firmware Revision         : 1.54IPMI Version              : 2.0Manufacturer ID           : 674Manufacturer Name         : DELL IncProduct ID                : 256 (0x0100)Product Name              : Unknown (0x100)Device Available          : yesProvides Device SDRs      : yesAdditional Device Support :    Sensor Device    SDR Repository Device    SEL Device    FRU Inventory Device    IPMB Event Receiver    Bridge    Chassis DeviceAux Firmware Rev Info     :    0x00    0x0f    0x00    0x00ipmitool> lan print 1Set in Progress         : Set CompleteAuth Type Support       : NONE MD2 MD5 PASSWORDAuth Type Enable        : Callback : MD2 MD5                        : User     : MD2 MD5                        : Operator : MD2 MD5                        : Admin    : MD2 MD5                        : OEM      :IP Address Source       : Static AddressIP Address              : 172.16.1.132Subnet Mask             : 255.255.255.0MAC Address             : 84:2b:2b:fd:e2:51SNMP Community String   : publicIP Header               : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10Default Gateway IP      : 172.16.1.254Default Gateway MAC     : 00:00:00:00:00:00Backup Gateway IP       : 0.0.0.0Backup Gateway MAC      : 00:00:00:00:00:00802.1q VLAN ID          : Disabled802.1q VLAN Priority    : 0RMCP+ Cipher Suites     : 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14Cipher Suite Priv Max   : aaaaaaaaaaaaaaa                        :     X=Cipher Suite Unused                        :     c=CALLBACK                        :     u=USER                        :     o=OPERATOR                        :     a=ADMIN                        :     O=OEM
4.3.4. ipmitool remote host access
# ipmitool -H 172.16.1.155 -U root -P 123456 lan print 1Set in Progress         : Set CompleteAuth Type Support       : NONE MD2 MD5 PASSWORDAuth Type Enable        : Callback : MD2 MD5                        : User     : MD2 MD5                        : Operator : MD2 MD5                        : Admin    : MD2 MD5                        : OEM      :IP Address Source       : Static AddressIP Address              : 172.16.1.15Subnet Mask             : 255.255.255.0MAC Address             : 84:2b:2b:fc:fb:ccSNMP Community String   : publicIP Header               : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10Default Gateway IP      : 172.16.1.254Default Gateway MAC     : 00:00:00:00:00:00Backup Gateway IP       : 0.0.0.0Backup Gateway MAC      : 00:00:00:00:00:00802.1q VLAN ID          : Disabled802.1q VLAN Priority    : 0RMCP+ Cipher Suites     : 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14Cipher Suite Priv Max   : aaaaaaaaaaaaaaa                        :     X=Cipher Suite Unused                        :     c=CALLBACK                        :     u=USER                        :     o=OPERATOR                        :     a=ADMIN                        :     O=OEM
4.3.5. Get chassis status and set power state
# ipmitool -I open chassisChassis Commands:  status, power, identify, policy, restart_cause, poh, bootdev, bootparam, selftest# ipmitool -I open chassis statusSystem Power         : onPower Overload       : falsePower Interlock      : inactiveMain Power Fault     : falsePower Control Fault  : falsePower Restore Policy : previousLast Power Event     :Chassis Intrusion    : inactiveFront-Panel Lockout  : inactiveDrive Fault          : falseCooling/Fan Fault    : falseSleep Button Disable : not allowedDiag Button Disable  : allowedReset Button Disable : not allowedPower Button Disable : allowedSleep Button Disabled: falseDiag Button Disabled : trueReset Button Disabled: falsePower Button Disabled: false
4.3.6. configure management controller4.3.6.1. management controller status and global enables
# ipmitool -I open mcMC Commands:  reset <warm|cold>  guid  info  watchdog <get|reset|off>  selftest  getenables  setenables <option=on|off> ...    recv_msg_intr         Receive Message Queue Interrupt    event_msg_intr        Event Message Buffer Full Interrupt    event_msg             Event Message Buffer    system_event_log      System Event Logging    oem0                  OEM 0    oem1                  OEM 1    oem2                  OEM 2
4.3.6.2. Configure LAN Channels
Ipmitool-I open LAN print 1 displays information about the BMC channel. If you do not know which channel the BMC uses, run the following command to confirm: ipmitool-I open channel info 1 ipmitool-I open LAN set 1 ipsrc static set local BMC address to static, you can set ipipmitool-I open LAN set 1 ipaddr 172.16.0.2 to set the IP address of the local BMC ipmitool-I open LAN set 1 netmask 255.255.255.0 subnet mask, do not forget to set the ipmitool-I open LAN set 1 defgw ipaddr 172.16.0.254 gateway, which can be set but make sure that the machine that monitors it is on the same route
4.3.6.3. configure management controller users
Ipmitool User List 1 view BMC user list ipmitool user set name 1 username Set User Name 1 for BMC Set User Name usernameipmitool user set password 1 123456 for BMC 1 Set Password 123456
4.3.6.4. configure management controller Channels
# ipmitool -I open channel info 1Channel 0x1 info:  Channel Medium Type   : 802.3 LAN  Channel Protocol Type : IPMB-1.0  Session Support       : multi-session  Active Session Count  : 0  Protocol Vendor ID    : 7154  Volatile(active) Settings    Alerting            : disabled    Per-message Auth    : disabled    User Level Auth     : enabled    Access Mode         : always available  Non-Volatile Settings    Alerting            : disabled    Per-message Auth    : disabled    User Level Auth     : enabled    Access Mode         : always available
4.3.7. Example for idrac

Http://support.dell.com/support/edocs/software/smbmcmu/bmcmu_4_0/cs/ug/bmcugc0d.htm#wp1067804

4.3.7.1. Change the IP address, subnet mask, and gateway.

View IP addresses, subnet masks, and gateways

# ipmitool -I open lan print 1Set in Progress         : Set CompleteAuth Type Support       : NONE MD2 MD5 PASSWORDAuth Type Enable        : Callback : MD2 MD5                        : User     : MD2 MD5                        : Operator : MD2 MD5                        : Admin    : MD2 MD5                        : OEM      :IP Address Source       : Static AddressIP Address              : 172.16.5.23Subnet Mask             : 255.255.255.0MAC Address             : 18:03:73:f5:ee:82SNMP Community String   : publicIP Header               : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10Default Gateway IP      : 172.16.5.254Default Gateway MAC     : 00:00:00:00:00:00Backup Gateway IP       : 0.0.0.0Backup Gateway MAC      : 00:00:00:00:00:00802.1q VLAN ID          : Disabled802.1q VLAN Priority    : 0RMCP+ Cipher Suites     : 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14Cipher Suite Priv Max   : aaaaaaaaaaaaaaa                        :     X=Cipher Suite Unused                        :     c=CALLBACK                        :     u=USER                        :     o=OPERATOR                        :     a=ADMIN                        :     O=OEM

Set IP addresses, subnet masks, and gateways

/usr/bin/ipmitool -I open lan set 1 ipaddr 172.16.8.200/usr/bin/ipmitool -I open lan set 1 netmask 255.255.255.0/usr/bin/ipmitool -I open lan set 1 defgw ipaddr 172.16.8.254/usr/bin/ipmitool -I open lan set 1 access on
4.3.7.2. Change the idrac LCD screen
# ipmitool delloem lcd set mode userdefined test# ipmitool delloem lcd infoLCD info    Setting: User defined    Text:    test
4.3.7.3. Change the idrac Password
# ipmitool user list 2ID  Name     Callin  Link AuthIPMI Msg   Channel Priv Limit2   root             true    true       true       ADMINISTRATOR# ipmitool user set password 2 "mypasswd"
4.3.7.4. shutdown/start
Server shutdown # ipmitool-I Lan-u root-P secpass-H 10.10.0.5 power off server boot # ipmitool-I Lan-u root-P secpass-H 10.10.0.5 power on server reset # ipmitool -I Lan-u root-P secpass-H 10.10.0.5 Power Reset
4.3.7.5. Launch list
ipmitool -I lan -H 10.10.0.5 -U ADMIN -P ADMIN chassis bootdev pxe

IPMI (Intelligent platform management interface)

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.