Use ipmitool to remotely manage Dell Series servers

Source: Internet
Author: User

 

IBM documentation: http://www.ibm.com/developerworks/cn/linux/l-ipmi/index.html

IPMI command collection: http://hi.baidu.com/guizishou/blog/item/d0c2a2440c10d58bb2b7dc29.html

 

 

Post a general online tutorial:

Setting method:

The network cable must be plugged in to Port 1, because it is only available for remote management when plugged in to Port 1. At that time, the IP address of the operating system must also be set on Port 1.

Start the machine and start self-check. Pay special attention to the prompts on the screen. When the BMC is displayed or press crtl + e, immediately press crtl + e to enter the setting interface.

After entering the management interface, set as follows:

1. Move the blue light bar to the IPMI over LAN option and press the Space key. A prompt is displayed !! Warning !! Don't worry about it, press enter and skip, then the off on the right will become on
2. Move the optical stripe to the LAN Parameters Option and press enter to enter the IP setting status. Use the upper and lower keys of the keyboard and the left and right keys to control the configuration. Set the three important options: IP subnet and gateway.
Ethernet IP address is the IP address of your server (it cannot be the same as the IP address of the operating system)
Subnet Mask is a subnet mask.
The default gateway is the gateway.
After completing the settings, Press ESC to exit the menu.
3. Move the optical bar to the LAN user configuration option and press enter to enter the user setting status.
Move the optical bar to enter password and enter the password. It is best not to have punctuation marks. It is better to have all lowercase letters. After you enter the password, press enter to automatically jump to Confirm Password and enter the password again, after entering the information, press enter and return to the menu.

4. confirm that there is no problem. Press ESC to open a small dialog box and select Save changes and exit to exit the disk. At this time, the machine starts to guide the system.

Usage:

Copy my ipmish.exe file to the D Drive or C drive root directory, and then execute the following command to remotely perform power operations on the machine.

Ipmish.exe-IP server IP address-u root-P password power on/reset/off

Power on hard boot
Power Reset
Power off hard shutdown

For example, the IP address of your server is 192.168.162.14, And the password set at that time is donglirong. Now the server is in the starting state, if you want to remotely restart the server (equivalent to pressing the restart button on the server by hand), use the following command

Ipmish.exe-IP 192.168.162.14-u root-P donglirong Power Reset

If no other prompt is displayed after the preceding command is entered, the server is restarted successfully and the server will be restarted.

For example, to remotely shut down the server, you just need to enter the following command.

Ipmish.exe-IP 192.168.162.14-u root-P donglirong power off

Enter the following command to start the instance again.

Ipmish.exe-IP 192.168.162.14-u root-P donglirong power on

Compile and install ipmitool in Linux

Download ipmitool-1.8.9.tar.gz and unzip it.
./Configure
Make
Make install

Execution method:

# Ipmitool-I Lan-H server address-u root-P password power off (hard shutdown, power off directly)
# Ipmitool-I Lan-H server address-u root-P password power soft)
# Ipmitool-I Lan-H server address-u root-P password power on (hard boot)
# Ipmitool-I Lan-H server address-u root-P password power reset (hard restart)
# Ipmitool-I Lan-H server address-u root-P password Power status (get the current power status)

Note the following:
This command should not be used unless necessary, because it is similar to hard restart or abnormal power loss, which may cause raid loss or data loss of the hard disk. Therefore, use it with caution.

========================================================== ======================================

========================================================== ======================================

The Dell system baseboard management controller (BMC) monitors system events for critical events by communicating with different sensors on the motherboard and sends alerts and log events when some parameters exceed their preset thresholds. BMC supports industry-standard intelligent platform management interface (IPMI) protocols for remote configuration, monitoring, and recovery of systems. BMC provides the following functions:
• Access through the system's serial port and integrated Nic
• Fault log records and SNMP alarm sending
• Access System Event Logs (SEL) and sensor STATUS
• Control System functions including power-on and power-off
• Support independent from system power supply or working status
• Text console redirection for system settings, text utilities and the operating system console
• Access the serial console interface of the Linux Enterprise Server using a serial interface (SOL) on the LAN.

2. Environment Detection
All the Dell x9xx series machines support the IPMI 2.0 protocol. in Linux, run the following command to confirm
[Root @ host ~] # Dmidecode | sed-n'/IPMI/, + 5'
If you can see IPMI information, IPMI is supported. For example, the output of PE 2950 is shown below. Note that the version is 2.0
IPMI 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)

At the same time, you need to start the ipmi service. centos 4 is installed with this service by default.
#/Etc/init. d/IPMI start
If it is started successfully, OK
Note: If you want to use a network cable to control the power supply or BIOS redirection of another machine, you must ensure that the two machines are in the same LAN or VLAN, so they are in the same IDC, some machines may not be mutually controlled because they are not in the same VLAN or LAN.

3. Configuration:
You can configure BMC in multiple ways. For example, you can press Ctrl + e to directly enter the configuration page when starting the system, or use the Dell Server Admin (Web Interface) Toolkit for configuration, and the syscfg (CLI command line) tool configuration in the dell sdk cd; you can also use ipmitool tool for configuration. ipmitool is an open source software, which is the most convenient configuration method. Considering that most machines are in the data center, we mainly demonstrate how to use ipmitool for configuration. For other configuration methods, refer to the Dell documentation CD, which provides detailed dummies.

1. Enable the ipmi service
#/Etc/init. d/IPMI start
2. Compile and install the ipmitool Tool
Download the latest stable version from http://ipmitool.sourceforge.net/And then compile and install to/opt/APP/ipmitool
And then execute the file for automatic installation.
3. Specific Configuration

# $ Ipmitool LAN set 1 ipaddr 10.0.0.12
# $ Ipmitool LAN set 1 netmask 255.255.255.0
# $ Ipmitool LAN set 1 access on
# $ Ipmitool LAN set 1 user
Configure the NIC address and access permission.
Modify the password of the root user
# $ Ipmitool User List 1
# $ Ipmitool user set password 2 secpass
The local settings are complete.
Iv. Test
Install ipmitool on another machine in the LAN and configure an IP address in the 10.0.0.0/24 CIDR block to the machine.
For example
# Ip A add 10.0.0.11/24 Dev eth0
Then, test whether the Ping function can pass 10.0.0.12.
# Ping 10.0.0.12
If the network is connected, start the next step.
For example, shut down the server directly.
# Ipmitool-I Lan-u root-P secpass-H 10.0.0.12 power off
Start
# Ipmitool-I Lan-u root-P secpass-H 10.0.0.12 power on
Reset
# Ipmitool-I Lan-u root-P secpass-H 10.0.0.12 Power Reset
Use Sol to control bios and view Linux Startup output
# Ipmitool-I lanplus-u root-P secpass-H 10.0.0.12 Sol activate

Input ~ +. Interrupt the link and enter ~ +? View help

 

 

 

 

 

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.