How to Use ipmitool to remote access SuperMicro Server

简介:

Use ipmitool to remotely control Server 

  1. Dependence
    Assume we need access remote server from local machine, following package and configuration should be matched on them individually. 

    (following command are based on the SuperMicro X10 2U server, Host IP of the two servers are 192.168.1.114 and 192.168.1.115 respectively)


    On local machine and remote server: install ipmitool.x86_64
    Maybe you can run “yum install ipmitool.x86_64” to install it.
    On remote server: we need set BMC LAN IP firstly.
    Take remote server 192.168.1.114 for example:
    ipmitool LAN set 1 ipaddr 192.168.1.80
    Enable BMC LAN access:
    ipmitool channel info
    ipmitool channel info 1
    ipmitool user list 1
    ipmitool user enable 3
    ipmitool channel setaccess 1 3 callin=on ipmi=on link=on privilege=4
    Add BMC user name and password for LAN access:
    ipmitool user priv 3 4 1
    ipmitool user name 3 admin
    ipmitool user set name 3 admin
    ipmitool user set password 3 admin
    Besides above, remote server's BMC and local machine should connect to same local network, then you can access remote server's BMC through LAN interface.


  2. Frequent Usage

    on local machine to access remote server:
    access remote server's console, for example to access 192.168.1.64's console:
    ipmitool -I lanplus -H 192.168.1.80 -U admin -P admin sol activate 
    To access 192.168.1.65's console:
    ipmitool -I lanplus -H 192.168.1.95 -U admin -P admin sol activate 
    Control remote server to reset, power down or power cycle:
    Take control 192.168.1.64 for example, 
    ipmitool -I lanplus -H 192.168.1.80 -U admin -P admin chassis power reset;  # reset 192.168.1.64 
    ipmitool -I lanplus -H 192.168.1.80 -U admin -P admin chassis power on;  # power on 192.168.1.64 
    ipmitool -I lanplus -H 192.168.1.80 -U admin -P admin chassis power cycle;  # power off 192.168.1.64 for 1s then power it on;
    ipmitool -I lanplus -H 192.168.1.80 -U admin -P admin chassis power off;  # power off 192.168.1.64 
    ipmitool -I lanplus -H 192.168.1.80 -U admin -P admin sel elist;  # get System event log on 192.168.1.64


  3. Control remote server from its peer node

    Besides the common LAN interface to access remote node, SuperMicro's X10DRS server provides local BMC the ability to access its peer node. Take 192.168.1.64 and its peer node 192.168.1.65 for example, user can tell peer node to reset/power off/power cycle on local node. Following commands are frequently used:
    ipmitool raw 0x30 0x70 0x21 0x0 # power reset peer node
    ipmitool raw 0x30 0x70 0x21 0x1 # immediately power off peer node
    ipmitool raw  0x30 0x70 0x21 0x2 # orderly power off peer node
    ipmitool raw  0x30 0x70 0x21 0x3 # power on peer node
    ipmitool raw  0x30 0x70 0x21 0x4 #  power cycle peer node























本文转自存储之厨51CTO博客,原文链接: http://blog.51cto.com/xiamachao/1728709 ,如需转载请自行联系原作者

相关文章
|
3月前
|
关系型数据库 MySQL 数据库
Client does not support authentication protocol requested by server; consider upgrading MySQL client
Client does not support authentication protocol requested by server; consider upgrading MySQL client
|
7月前
|
Apache Windows
(MAC) Apache You don't have permission to access / on this server.
(MAC) Apache You don't have permission to access / on this server.
44 0
|
7月前
|
关系型数据库 MySQL 数据库
MySql错误 1251 - Client does not support authentication protocol requested by server
MySql错误 1251 - Client does not support authentication protocol requested by server
68 0
|
关系型数据库 MySQL
【已解决】Client does not support authentication protocol requested by server; consider upgrading MySQL client
Client does not support authentication protocol requested by server; consider upgrading MySQL client
403 0
|
关系型数据库 MySQL 数据安全/隐私保护
Client does not support authentication protocol requested by server 解决Navicat连接不上MySql服务器报错
Client does not support authentication protocol requested by server 解决Navicat连接不上MySql服务器报错
493 0
Client does not support authentication protocol requested by server 解决Navicat连接不上MySql服务器报错
|
固态存储 网络协议 Linux
The remote SSH server rejected X11 forwarding request
The remote SSH server rejected X11 forwarding request
346 0
The remote SSH server rejected X11 forwarding request
|
网络安全
mac下 ssh: connect to host localhost port 22: Connection refused
mac下 ssh: connect to host localhost port 22: Connection refused
700 0
mac下 ssh: connect to host localhost port 22: Connection refused
|
Linux 网络安全
WARNING:The remote SSH server rejected X11 forwarding request.
WARNING:The remote SSH server rejected X11 forwarding request.
159 0
WARNING:The remote SSH server rejected X11 forwarding request.
|
网络安全
SSH 遇到 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
SSH 遇到 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
232 0
|
存储 缓存 NoSQL
remote dictionary server
Redis简介 remote dictionary server,以字典结构存储数据。数据结构如下Redis的安装 数据类型 字符串类型 字符串类型是二进制安全的,能存储包括二进制数据等任何形式的字符串,一个字符类型键允许存储的最大容量是512M。
977 0