Upgrade to Pro — share decks privately, control downloads, hide ads and more …

スイッチのBMC、つかってますか?

 スイッチのBMC、つかってますか?

さくらインターネット株式会社
井上 喬視

SONiC Workshop Japan 2025
https://sonic.connpass.com/event/345182/

Tweet

More Decks by SONiC Users Group Japan

Other Decks in Technology

Transcript

  1. 自己紹介 所属: さくらインターネット株式会社 担当サービス: さくらの専用サーバー PHY 高火力 PHY ← 最近はもっぱらこちら

    業務としては主にネットワークを中心にインフラ全般を担当 JANOG54「生成AI向けパブリッククラウドサービスをつくってみた話」 https://www.janog.gr.jp/meeting/janog54/sakura/ さくらの専用サーバPHYとその裏側 〜物理ホスティング環境構築自動化の取り組み〜 (前編) https://knowledge.sakura.ad.jp/26536/ 2
  2. サーバーとBMC サーバーにはだいたい搭載されている ベンダーによって名称が違う DELL: iDRAC HPE: iLO Fujitsu: iRMC 各社の実装には若干クセがある

    ハードウェアも違うのである程度の差異は許容して利用している 運用者目線だと「未実装」はありえない(無いと困る) 6
  3. サーバーではこう使っています 電源のオンオフ ON / OFF / Power Cycle / Soft

    Reset リモートコンソール ブラウザからサーバーの画面を開いて操作 モニタリング CPUやメモリなどコンポーネントのヘルスチェック ログ ハードウェア関連のログ (SEL) 障害解析情報の取得 いわゆるtech-support 12
  4. SONiCからipmitool fru $ sudo ipmitool fru FRU Device Description :

    Builtin FRU Device (ID 0) Device not present (Requested sensor, data, or record not found) FRU Device Description : cpu0 (ID 1) Product Version : R01 FRU Device Description : bmc (ID 2) Board Mfg Date : Wed Sep 11 09:43:00 2024 Board Product : AST2600 DC-SCM Board Serial : xxxxxxxxxxxxxx Board Extra : 7C:8D:9C:XX:XX:XX Board Extra : R0B FRU Device Description : powersupply0 (ID 75) Board Mfg Date : Sat Apr 20 09:00:00 2024 Board Mfg : Liteon Power Board Product : PS-2302-6L Board Serial : xxxxxxxxxxxxxxx Board Part Number : PS-2302-6L Product Version : 02 (以下略) 15
  5. SONiCからipmitool sensor $ sudo ipmitool sensor (途中略) FAN0_FRONT | 8700.000

    | RPM | ok | na | 3750.000 | 3900.000 | 18300.000 | 18450.000 | na FAN1_FRONT | 8550.000 | RPM | ok | na | 3750.000 | 3900.000 | 18300.000 | 18450.000 | na FAN2_FRONT | 8700.000 | RPM | ok | na | 3750.000 | 3900.000 | 18300.000 | 18450.000 | na FAN3_FRONT | 8700.000 | RPM | ok | na | 3750.000 | 3900.000 | 18300.000 | 18450.000 | na FAN0_REAR | 9600.000 | RPM | ok | na | 3300.000 | 3450.000 | 15600.000 | 15750.000 | na FAN1_REAR | 9900.000 | RPM | ok | na | 3300.000 | 3450.000 | 15600.000 | 15750.000 | na FAN2_REAR | 9750.000 | RPM | ok | na | 3300.000 | 3450.000 | 15600.000 | 15750.000 | na FAN3_REAR | 9750.000 | RPM | ok | na | 3300.000 | 3450.000 | 15600.000 | 15750.000 | na 16
  6. 外からipmitool chassis power status $ ipmitool -H 10.100.xx.xx -U admin

    -P **** -I lanplus -C17 chassis power status Chassis Power is on いちおう動く FANやPSUの監視には使えそう sonic-buildimageみる感じipmitoolの結果をshowコマンド で出力しているケースもありそう ただ chassis power cycle が動かないことがある(あった) 17
  7. Redfish $ curl -k -u admin:xxxxxxx https://10.100.29.13/redfish/v1/ { "@odata.id": "/redfish/v1",

    "@odata.type": "#ServiceRoot.v1_11_0.ServiceRoot", "AccountService": { "@odata.id": "/redfish/v1/AccountService" }, "Cables": { "@odata.id": "/redfish/v1/Cables" }, "CertificateService": { "@odata.id": "/redfish/v1/CertificateService" }, "Chassis": { "@odata.id": "/redfish/v1/Chassis" (以下略) 18
  8. Redfishでchassisの正常性確認 $ curl -sk -u admin:xxxxxxx https://10.100.29.13/redfish/v1/Chassis/chassis | jq .Status

    { "Health": "OK", "HealthRollup": "OK", "State": "Enabled" } $ curl -sk -u admin:xxxxxxx https://10.100.29.13/redfish/v1/Chassis/chassis/Thermal | jq ".Fans|.[]|{Name,Status}" { "Name": "FAN1 FRONT", "Status": { "Health": "OK", "State": "Enabled" } } { "Name": "FAN1 REAR", "Status": { "Health": "OK", "State": "Enabled" } } (以下略) 19
  9. Redfish Actionもある(PowerCycle) ※ 動くかどうかは未検証 $ curl -sk -u admin:xxxxxxx https://10.100.29.13/redfish/v1/Chassis/chassis/ResetActionInfo

    { "@odata.id": "/redfish/v1/Chassis/chassis/ResetActionInfo", "@odata.type": "#ActionInfo.v1_1_2.ActionInfo", "Id": "ResetActionInfo", "Name": "Reset Action Info", "Parameters": [ { "AllowableValues": [ "PowerCycle" ], "DataType": "String", "Name": "ResetType", "Required": true } ] 20
  10. ちょっと雑な面も... シャーシ名がchassisだったり $ curl -sk -u admin:xxxxxxx https://10.100.29.13/redfish/v1/Chassis/chassis | jq

    .Name "chassis" シリアル番号が取れなさそう CPUやメモリは無いものとして扱われている Redfish HostInterface は生えない MICASの一部デバイスで対応している? sonic-buildimageを除くとredfishを叩いてるコードがある 21
  11. 28