IBM服务器BMC 远程管理

IBM服务器BMC 远程管理

本公司目前在各地有许多服务器需要管理,由于主要采用IBM x346,所以对X346进行了研究。这款服务器,支持BMCBaseboard ManagementController,因为多集成于主板而得名),提供远程管理维护。本文主要演示一下如何通过BMC远程管理X346服务器。


智能平台管理接口(IPMIIntelligentPlatform Management Interface)是一项应用于服务器管理系统设计的标准,由IntelHPDellNEC公司于1998年共同提出,利用此接口标准设计有助于在不同类服务器系统硬件上实施系统管理,使不同平台的集中管理成为可能。IPMI管理平台中,BMC是核心控制器,系统管理软件对各个被管理器件的管理,都是通过与BMC通信来实现的。

BMC管理示意图如下:


151650942.jpg

151652346.jpg

当然,也可以不使用如图所示的方式,而直接使用smbridge 命令行连接BMC SERVER进行访问和控制。









配置步骤如下:

1.设置服务器的BMC参数,使服务器可以通过BMC被管理;

2.安装SMBridge软件;

3.使用TELNET(本机或者远程)终端登录SMBridge telnet server,管理服务器。


一:BMCBIOS设置

1.F1进入BIOSAdvance->设置BMC IP 172.24.5.23/24;


2.如果还需要使用SOLSerial over LAN )(提供远程控制台)功能,则需要设置如下:

Advanced OptionsBaseboardManagement Controller (BMC) Settings,作如下设定:
�C System-BMC SerialPort Sharing
设为 Enabled
�C BMC Serial PortAccess Mode
设为 Dedicated

Devices and I/O Ports,作如下设定:
�C
SerialPort A 设为 Auto-configure
�C
SerialPort B 设为 Auto-configure
Remote Console Redirection
,作如下设定:
�C Remote Console Active
设为Enabled
�C Remote Console TextEmulation
设为 VT100/VT220
�C Remote Console KeyboardEmulation
设为 VT100/VT220
�C Remote Console Active AfterBoot
设为 Enabled
�C Remote Console FlowControl
设为 Hardware

3.如果还需要使用SOL,需要WINDOWS 系统支持

windows命令行下,检查配置



151654413.jpg

如果不正确,进行相关如下:bootcfg /ems on/port com1 /baud 19200 /id 1;

注意参数与BIOS设置一致;



二:SMBridge软件安装

可以从站点http://www.ibm.com/pc/support/site.wss/MIGR-57729.html下载软件,http://www.ibm.com/pc/support/site.wss/MIGR-57816.html下载文档.



安装完成以后,有如下几个文件

pxyservice.exe服务进程,运行该程序,即可启动TELNET SERVER;

pxyservice.ini一般不需要配置

SMBridge.exeSMC处理进程。

smbridge.cfg

ip=127.0.0.1

port=623

session_timeout=30

power_off_timeout=60

其中IP设置SMBridge监听IP,

INADDR_ANY为任意;

127.0.0.1 只允许本机;

ip:监听一个具体IP;


PORT为监听端口,默认为623,可以随便更改。


运行pxyservice.exe,即可启动SMBridge服务。



三:启动管理客户端

可以在本机或责远程连接TELNET server.客户端软件可以使用任何标准的TELNET客户端软件。


连接到服务器

telnet172.24.5.24 623

Username:administrator

Password:


administrator login successful.


OSA System Management Bridge (SMBridge), Version 1.0.3.8

Copyright (c) 2004 - OSA Technologies, an Avocent Company. All RightsReserved.


SMBridge>help

connect -ip<bmc-ip-address|bmc-host-name> [-u <username>] [-p <password>]

console

identify [on [-t<seconds>]|off]

power[status|off[-force]|on|reset|cycle]

reboot [-force]

sel get [[[-begin<indexF>][-max <count>|-end <indexL>]]|-last <index>]

|clear|status|set -time<YYYY/MM/DD hh:mm:ss>

sol [enable|disable|<config[-baud 9600|19200] [-priv admin|user|

operator] [-retrycount count][-retryinterval interval]>]

sysinfo [fru|id]


首先,连接到被管理服务器

SMBridge>connect -ip 172.24.5.23 -u USERID -p PASSW0RD


获取系统标识

SMBridge>sysinfo

DeviceID=32

DeviceRevision=0

FirmwareVersion=1.16

IpmiVersion=1.5

ManufacturerID=2

ProductID=3

Status=OK

SDRVersion=1.5

Guid=95243b5e-88a8-a5a1-124a-b4467c5a98da


访问事件日志

SMBridge>sel get

1=2007/09/04 17:35:31,#3Watchdog2,Timer interrupt (Interrupt type: none, Timeruse at expiration: BIOS FRB2)


2=2007/09/04 17:35:31,#3Watchdog2,Timer expired (Interrupt type: none, Timer useat expiration: BIOS FRB2)


3=2007/09/05 15:54:05,#3Watchdog2,Timer interrupt (Interrupt type: none, Timeruse at expiration: BIOS FRB2)


4=2007/09/05 15:54:05,#3Watchdog2,Timer expired (Interrupt type: none, Timer useat expiration: BIOS FRB2)


5=2007/09/06 14:49:03,#1PowerUnit,Power off/down


6=2007/09/06 14:52:28,#1PowerUnit,Power off/down (deassertion event)



系统电源管理

SMBridge>power status/reboot/on/off


SOL控制台

SMBridge>console

SAC>

开一个终端会话

SAC>cmd

Activating remote console now.

Remote console is now active and ready for user input.

SAC> ch检查会话

SAC> ch �Csi 1连接到会话1


如果系统正在上电自检:可以看到如下界面

151656601.jpg

这个界面F1不容易进入BIOS;F2进入诊断界面。

151658985.jpg

乱码是因为当前还不能很好支持中文,如果是英文界面,则如下所示



如果系统已经启动,会提示输入帐号、密码,然后打开一个cmd shell

151700535.jpg

Name:Cmd0002
Description: Command Prompt
Type: <Esc><tab>0 to return to the SAC channel.
Use any other key to view this channel.


Please enter login credentials.
Username:
Domain:
Password:


Attempting to authenticate...


Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003

C:\WINDOWS\system32>

成功登录后,显示如下界面,进入WINDOWS 控制台。



151703610.jpg

命令总结如图:


152122378.jpg

相关说明


0BMC和网卡1共享。


1X346BMC主要提供了以下4个方面的命令。对我来说,主要是POWER,可以让我们在服务器死机后、停电又来电后,可以远程打开关闭服务器,同时查看BIOS自检过程,看是否有硬件故障。

命令

说明

identify

控制前面板上的标识 LED

sysinfo

检索和显示 Managed System 信息。

power

控制 Managed System 的电源状态。

sel

显示或删除 SEL 中的信息。


2.也可以使用SMBridge.exe命令直接连接支持BMC的服务器进行管理。

如:

1. Display general system info ofremote server using LAN connection:

"smbridge -ip 192.168.0.100 -u root -p calvin sysinfo"


2. Turn on/off identification LEDthat exists on the server:

"smbridge -ip 192.168.0.100 -u root -p calvin identify on"

"smbridge -ip 192.168.0.100 -u root -p calvin identify off"


3. Power cycle the remote server:

"smbridge -ip 192.168.0.100 -u root -p calvin power cycle"


4. BMC提供的管理功能还是很有限。如果想要更好的功能,可以考虑选配其它管理组件,如RSA等管理卡。IBM还提供其他很多管理方法,BMC只是最基本的。具体信息可以http://www-900.ibm.com/cn/support/viewdoc/detail?DocId=JJLU-6FT2NYIBM系统管理方案介绍。


本文介绍的方法基本适用与DELL服务器,可以参考

http://support2.jp.dell.com/docs/software/smbmcmu/1.2/sc/ug/bmcugc0d.htm#1052395


从基本管理方法而言,HPILO提供的图形化界面,以及虚拟设备更为强大和简单,

具体可以参考HP官方网站。



附件是本文的WORD文档,以及本文所用的软件。




你可能感兴趣的:(远程管理,IBM服务器BMC)