廣州商城建網(wǎng)站渠道搜索排名優(yōu)化軟件
1、監(jiān)控對(duì)象:
? ? ? ? 1、監(jiān)控對(duì)象的理解;CPU是怎么工作的;
? ? ? ? 2、監(jiān)控對(duì)象的指標(biāo):CPU使用率;上下文切換;
? ? ? ? 3、確定性能基準(zhǔn)線:CPU負(fù)載多少才算高;
2、監(jiān)控范圍:
? ? ? ? 1、硬件監(jiān)控:服務(wù)器的硬件故障
? ? ? ? 2、操作系統(tǒng)監(jiān)控:CPU、內(nèi)存、IO、進(jìn)程等
? ? ? ? 3、應(yīng)用服務(wù)監(jiān)控:
? ? ? ? 4、業(yè)務(wù)角度進(jìn)行監(jiān)控
3、硬件監(jiān)控:
? ? ? ? 遠(yuǎn)程控制卡:DELL服務(wù)器iDRAC、惠普服務(wù)器ILO、IBM服務(wù)器:IMM、浪潮服務(wù)器:
? ? ? ? IPMI:智能平臺(tái)管理接口(IPMI):是一種開(kāi)放標(biāo)準(zhǔn)的硬件管理接口規(guī)范,定義了嵌入式管理子系統(tǒng)進(jìn)行通信的特定方法。IPMI通過(guò)基板管理控制(BMC)(位于IPMI規(guī)格的硬件上)進(jìn)行交流。使用低級(jí)硬件智能管理而不使用操作系統(tǒng)進(jìn)行管理。
? ? ? ? 具有兩個(gè)主要的特點(diǎn):此配置允許進(jìn)行帶外服務(wù)器管理;操作系統(tǒng)不必負(fù)擔(dān)傳輸系統(tǒng)狀態(tài)數(shù)據(jù)的任務(wù)。IPMI的核心是一個(gè)專用芯片控制器(叫做服務(wù)器處理器或基板管理控制器(BMC)),其不依賴于服務(wù)器的處理器、BIOS或操作系統(tǒng)來(lái)工作,可謂非常獨(dú)立,是一個(gè)單獨(dú)在系統(tǒng)內(nèi)運(yùn)行的無(wú)代理管理子系統(tǒng)。
? ? ? ? IPMI的功能:
? ? ? ? 監(jiān)控服務(wù)器的物理健康特征:如溫度、電壓、風(fēng)扇工作狀態(tài)、電源狀態(tài)等。
? ? ? ? 可以通過(guò)串口、Modem以及Lan等遠(yuǎn)程環(huán)境管理服務(wù)器系統(tǒng)、如遠(yuǎn)程開(kāi)關(guān)機(jī)。
? ? ? ? ipmitool:監(jiān)控控制。
1)硬件要支持;
2)操作系統(tǒng):Linux IPMI
3)管理工具:ipmitool
4、安裝OpenIMPI和ipmitool:
[root@vm1 ~]# yum install -y OpenIPMI ipmitool啟動(dòng)ipmi:
[root@vm1 ~]# systemctl start ipmi
使用IPMI有兩種方式:1 本地調(diào)用? 2 遠(yuǎn)程調(diào)用
[root@vm1 ~]# ipmitool -help
ipmitool version 1.8.18usage: ipmitool [options...] <command>-h This help-V Show version information-v Verbose (can use multiple times)-c Display output in comma separated format-d N Specify a /dev/ipmiN device to use (default=0)-I intf Interface to use-H hostname Remote host name for LAN interface-p port Remote RMCP port [default=623]-U username Remote session username-f file Read remote session password from file-z size Change Size of Communication Channel (OEM)-S sdr Use local file for remote SDR cache-D tty:b[:s] Specify the serial device, baud rate to useand, optionally, specify that interface is the system one-4 Use only IPv4-6 Use only IPv6-a Prompt for remote password-Y Prompt for the Kg key for IPMIv2 authentication-e char Set SOL escape character-C ciphersuite Cipher suite to be used by lanplus interface-k key Use Kg key for IPMIv2 authentication-y hex_key Use hexadecimal-encoded Kg key for IPMIv2 authentication-L level Remote session privilege level [default=ADMINISTRATOR]Append a '+' to use name/privilege lookup in RAKP1-A authtype Force use of auth type NONE, PASSWORD, MD2, MD5 or OEM-P password Remote session password-E Read password from IPMI_PASSWORD environment variable-K Read kgkey from IPMI_KGKEY environment variable-m address Set local IPMB address-b channel Set destination channel for bridged request-t address Bridge request to remote target address-B channel Set transit channel for bridged request (dual bridge)-T address Set transit address for bridge request (dual bridge)-l lun Set destination lun for raw commands-o oemtype Setup for OEM (use 'list' to see available OEM types)-O seloem Use file for OEM SEL event descriptions-N seconds Specify timeout for lan [default=2] / lanplus [default=1] interface-R retry Set the number of retries for lan/lanplus interface [default=4]Interfaces:open Linux OpenIPMI Interface [default]imb Intel IMB Interfacelan IPMI v1.5 LAN Interfacelanplus IPMI v2.0 RMCP+ LAN Interfaceserial-terminal Serial Interface, Terminal Modeserial-basic Serial Interface, Basic Modeusb IPMI USB Interface(OEM Interface for AMI Devices)Commands:raw Send a RAW IPMI request and print responsei2c Send an I2C Master Write-Read command and print responsespd Print SPD info from remote I2C devicelan Configure LAN Channelschassis Get chassis status and set power statepower Shortcut to chassis power commandsevent Send pre-defined events to MCmc Management Controller status and global enablessdr Print Sensor Data Repository entries and readingssensor Print detailed sensor informationfru Print built-in FRU and scan SDR for FRU locatorsgendev Read/Write Device associated with Generic Device locators sdrsel Print System Event Log (SEL)pef Configure Platform Event Filtering (PEF)sol Configure and connect IPMIv2.0 Serial-over-LANtsol Configure and connect with Tyan IPMIv1.5 Serial-over-LANisol Configure IPMIv1.5 Serial-over-LANuser Configure Management Controller userschannel Configure Management Controller channelssession Print session informationdcmi Data Center Management Interfacenm Node Manager Interfacesunoem OEM Commands for Sun serverskontronoem OEM Commands for Kontron devicespicmg Run a PICMG/ATCA extended cmdfwum Update IPMC using Kontron OEM Firmware Update Managerfirewall Configure Firmware Firewalldelloem OEM Commands for Dell systemsshell Launch interactive IPMI shellexec Run list of commands from fileset Set runtime variable for shell and exechpm Update HPM components using PICMG HPM.1 fileekanalyzer run FRU-Ekeying analyzer using FRU filesime Update Intel Manageability Engine Firmwarevita Run a VITA 46.11 extended cmdlan6 Configure IPv6 LAN Channels[root@vm1 ~]#
ipmitool 是一種可用在 linux 系統(tǒng)下的命令行方式的 ipmi 平臺(tái)管理工具,它支持 ipmi 1.5 規(guī)范(最新的規(guī)范為 ipmi 2.0),通過(guò)它可以實(shí)現(xiàn)獲取傳感器的信息、顯示系統(tǒng)日志內(nèi)容、網(wǎng)絡(luò)遠(yuǎn)程開(kāi)關(guān)機(jī)等功能。
ipmitool mc info #顯示BMC版本信息
ipmitool bmc reset cold #BMC 熱啟動(dòng)
ipmitool bmc reset warmBMC #冷啟動(dòng)
?我們還可以查到別的一些問(wèn)題。
服務(wù)器的BMC IP的配置方法:
1)網(wǎng)線連接到浪潮服務(wù)器的IPMI接口。
2)在開(kāi)機(jī)LOGO界面,按DEL進(jìn)入服務(wù)器的BIOS界面,選擇Server Mgmt菜單。
3)進(jìn)入Server Mgmt菜單之后選擇BMC network configuration。
4)將Sharelink NetWork 設(shè)置為Disabled。
5)將Get BMC Dedicated Parameters的參數(shù)設(shè)置為:Manual。
6)Configuration Address Source 設(shè)置為Static。
7)設(shè)置:Station IP Address內(nèi)網(wǎng)地址。
8)設(shè)置子網(wǎng)掩碼:正常是255.255.255.0。
9)設(shè)置網(wǎng)關(guān),這個(gè)時(shí)候網(wǎng)關(guān)是需要進(jìn)行設(shè)置的。
10)然后按F10,保存和退出BIOS配置界面。
我這邊記錄下浪潮服務(wù)器通過(guò)IPMI的IP地址頁(yè)面來(lái)安裝系統(tǒng)的截圖方法:
1)首先我們要在機(jī)房的內(nèi)網(wǎng)環(huán)境中的某臺(tái)服務(wù)器上,使用firefox瀏覽器打開(kāi)BMC IP地址:
說(shuō)明:這個(gè)IP地址是在服務(wù)器的BIOS進(jìn)行配置的。
?2)輸入賬號(hào)密碼登錄:
?我們可以看到當(dāng)前服務(wù)器的運(yùn)行狀態(tài):如CPU、內(nèi)存、fan風(fēng)扇、電源等運(yùn)行狀態(tài),都是綠色的表示是正常的狀態(tài)。
另外,我們還看到BMC的信息:有MAC地址、Network Mode為static,就是靜態(tài)IP地址。IP地址是192.168.1.223.當(dāng)前web的活動(dòng)用戶。
還有FW Version Information: 可以看到BMC、BIOS、ME、CPU等版本信息。
3)選擇Remote Control->Console Redirection,然后點(diǎn)擊KVM Over IP按鈕,勾選接受復(fù)選框,然后RUN。
4)然后選擇“Media”菜單,然后選擇“Virtual Media Wizard"子菜單:?
?5)在CD/DVD Media:1中選擇CD Image 中的Centos7的安裝DVD文件iso,然后點(diǎn)擊“Connect CD/DVD"按鈕。然后點(diǎn)擊“Close”按鈕關(guān)閉該對(duì)話框。
?我們當(dāng)時(shí)是把CentOS的光盤放在/root目錄下面。
6)然后在“Power”菜單中選擇"Reset Server”的菜單項(xiàng),重新啟動(dòng)服務(wù)器;
7)服務(wù)器進(jìn)入到服務(wù)器的Centos系統(tǒng)的安裝界面;
?然后就開(kāi)始CentOS系統(tǒng)的安裝。
我們之前還遇到過(guò)這種問(wèn)題:是浪潮無(wú)法通過(guò)IPMI無(wú)法安裝centos7,就是通過(guò)這種方式進(jìn)行處理的。