IPMITOOL 重啟BMC系統和密碼及引數重置

2021-08-20 09:53:14 字數 784 閱讀 9364

一、故障現象 

1、bmc 伺服器管理口宕機遠端http無法登陸

2、bmc 防火牆策略配置全部拒絕導致無法訪問

二、環境

中科曙光 i620-g20伺服器

三、解決方法

問題1解決:

ipmitool -h (bmc的管理ip位址) -i lan -u (bmc登入使用者名稱) -p (bmc 登入使用者名稱的密碼) mc reset warm

#lan引數 為介面連線的模式之一,遠端通過網路執行的一般用lan 或lanplus,如果在本地ssh登入操作 可用open 引數

問題2解決:

登入該伺服器系統後執行:

ipmitool raw 0x32 0x66  #恢復預設值

ipmitool lan set 1 ipsrc static  (設定ipmi ip非dhcp)

ipmitool lan set 1 ipaddr 192.168.0.1(設定ipmi  位址)

ipmitool lan set 1 netmask 255.255.255.0 (設定ipmi 子網掩碼)

ipmitool lan set 1 defgw ipaddr 192.168.0.1 (設定ipmi 閘道器)

ipmitool user set password 1 abcdefg      (修改ipmi 使用者名稱1的密碼)#root 修改後預設密碼abcdefg

ipmitool user set password 2 abcdefg      (修改ipmi 使用者名稱2的密碼)#admin 修改後預設密碼abcdefg

ipmitool 命令列重啟伺服器

我們所有得伺服器都有乙個console 口,當伺服器到了機房後,我們只需要將這個console 口連上線放通網路,我們就可以實現遠端管理這台server 不需要頻繁得去機房操作,這個console ip 也被叫為bmc ip 我們重啟server 我知道得是有三種方式 1.機房物理重啟 2.cons...

android 系統關機,重啟

android 系統關機,重啟 1.android系統的關機,重啟 位於frameworks base core jni android os power.cpp,裡面有 static void android os power shutdown jnienv env,jobject clazz s...

Windows Mobile 軟重啟系統

在編寫windows mobile上的應用系統時,因為特殊的業務需要,需要通過軟體重啟手機,net 託管api中不包含該介面,自己封裝了乙個。public const uint file device hal 0x00000101 public const uint method buffered ...