IPMI 有分成為 Inband 與 Outband,主要的區分為:
Inband (In-Band)
- Console Redirection (就是透過 serial port 也就是一般所說的 comport,還可以透過另外一種 outband – serial over LAN 來傳送.)
- OS 透過 System Interface (KCS, SMIC, BT, SSIF) 對本機下 ipmi command (不需要使用者及其密碼).
Outband (Out-of-Band)
- BMC dedicate LAN (可以分為專門獨立出來的 RJ45 埠給 IPMI 來使用,還有一種是用 sideband 的方式與 Ethernet RJ45 共享一個埠.)
- Ethernet (Web)
- IOL (Ipmi over Lan)
- SOL (Serial over LAN)
- IOS (Ipmi over serial , General serial port)
其實 IPMI 的介面可以分為 LAN 以及 Serial Port 兩種,但是可以透過很多種變形的方式來控制.下面使用 SOL (Serial Over Lan) 的指令來將遠端伺服器畫面轉到你目前系統上.
#ipmitool -I lanplus -H <hostname> [-U <username>] [-P <password>] sol activate
- -I <interface>
參數 有 lan (適用於 IPMI 1.5) , lanplus(適用於 IPMI 2.0 ,有提供加密) - -H <address>
遠端 BMC IP address 也可以是 hostname. - -U <username>
遠端 BMC 的使用者帳號. - -P <password>
遠端 BMC 的使用者帳號密碼. - sol
sol Configure and connect IPMIv2.0 Serial-over-LAN. - activate
activate [<usesolkeepalive|nokeepalive>] [instance=<number>]
更多的資訊可以透過 ipmitool help 來查詢.
[root@localhost ~]# ipmitool help [root@localhost ~]# ipmitool sol help
因為是 serial 所以需要設定 Bit Rate,透過下面指令來看目前環境設定的是多少,這需要跟 IPMI Host 同步(這些資訊在 Host 端的 BIOS 都可以查詢到)
[root@localhost ~]# ipmitool sol info 1 Info: SOL parameter 'Payload Channel (7)' not supported - defaulting to 0x01 Set in progress : set-complete Enabled : true Force Encryption : false Force Authentication : false Privilege Level : ADMINISTRATOR Character Accumulate Level (ms) : 50 Character Send Threshold : 255 Retry Count : 7 Retry Interval (ms) : 480 Volatile Bit Rate (kbps) : 9.6 Non-Volatile Bit Rate (kbps) : 9.6 Payload Channel : 1 (0x01) Payload Port : 623
bit rate 有兩種可以設定 ,non-volatile-bit-rate (永久有效), volatile-bit-rate (暫時,系統重開機就失效了)
[root@localhost ~]# ipmitool sol set help SOL set parameters and values: set-in-progress set-complete | set-in-progress | commit-write enabled true | false force-encryption true | false force-authentication true | false privilege-level user | operator | admin | oem character-accumulate-level <in 5 ms increments> character-send-threshold N retry-count N retry-interval <in 10 ms increments> non-volatile-bit-rate serial | 9.6 | 19.2 | 38.4 | 57.6 | 115.2 volatile-bit-rate serial | 9.6 | 19.2 | 38.4 | 57.6 | 115.2