IPmitool操作KVM的常用命令

來源:互聯網
上載者:User

標籤:kvm   ipmitool   

遠程KVM開關機:
ipmitool -H IP地址 -I lan -U KVM使用者 -P KVM密碼 power off        #關機
ipmitool -H IP地址 -I lan -U KVM使用者 -P KVM密碼 power on        #開機
ipmitool -H IP地址 -I lan -U KVM使用者 -P KVM密碼 power reset   #重啟
ipmitool -H IP地址 -I lan -U KVM使用者 -P KVM密碼 mc reset        #重啟BMC

建立ipmi帳號並添加許可權:
ipmitool -H IP地址 -U KVM使用者 -P KVM密碼 user set name 4 Johnny    #建立/修改使用者ID 3 ,使用者名稱為Johnny
ipmitool -H IP地址 -U KVM使用者 -P KVM密碼 user set password 4 123456    #修改使用者ID 3 , 密碼為123456
ipmitool -H IP地址 -U KVM使用者 -P KVM密碼 user priv 4 4 1      #設定ID 3 ,通道1 , 為administrator許可權
ipmitool -H IP地址 -U KVM使用者 -P KVM密碼 channel setaccess 1 4 callin=on link=on ipmi=on privilege=4        #設定使用者ID 3 , 為administrator許可權 並且 開啟callin ,link , ipmi 許可權。
ipmitool -H IP地址 -U KVM使用者 -P KVM密碼 user enable 4    #啟用使用者ID 3  
ipmitool -H IP地址 -U KVM使用者 -P KVM密碼 channel        #查看使用者權限level,一般4為administrator許可權
ipmitool -H IP地址 -U KVM使用者 -P KVM密碼 user list 1         #查看通道1的使用者
ipmitool -H IP地址 -U KVM使用者 -P KVM密碼 user disable 3       #關閉使用者ID3

IPmitool操作KVM的常用命令

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.