通过 AMM 通过命令模式与 IBM HS22 IMM 进行通信

通过 AMM 通过命令模式与 IBM HS22 IMM 进行通信

在以前包含 BMC 的刀片型号上,我能够通过传递命令从外部管理站与 BMC 进行通信,以执行诸如打开/关闭刀片电源、设置 VPD 参数、重新启动 BMC 等操作。

现在在 HS22 上,很多事情都发生了变化。例如,我们不再能使用相同的直通命令来写入 VPD 信息页面并让它们在 IMM 重新启动后继续存在 - 看起来这些 VPD 页面是由 IMM 中包含的信息填充的。

我们如何使用外部主机的高级设置实用程序与 HS22 IMM 进行通信?或者,我们需要向 AMM 发送哪些 TCP 命令模式命令才能与 IMM 进行通信?

为了我们的目的,我们特别不能从刀片本身与IMM进行通信。

具体示例:当我通过 AMM 向刀片 BMC 发送直通 IPMI 命令以将信息(例如 MTM、Serial)写入 VPD 页面 0x10 时,该命令会在具有 BMC 的刀片(例如 HS21)上持续存在。我可以发送相同的 IPMI 命令以将数据写入 HS22 上的 VPD 页面,但是它在 IMM 重新启动后不会持续存在。

我需要向 IMM 发送哪些 IPMI 命令?当设置 MTM 和串行时,asu 会发送哪些 IPMI 命令?

答案1

从 ASU(高级设置实用程序)版本 82k/9.50 开始,支持与刀片 IMM 的带外通信。

以下是 ASU 用户手册第 83-84 页的摘录(http://download.boulder.ibm.com/ibmdl/pub/systems/support/system_x_pdf/ibm_util_asu_asu82k_anyos_noarch.pdf):


AMM 上刀片的 OOB 配置

ASU 支持通过带外(OOB)模式配置刀片设置。本节介绍如何使用它在 AMM 上配置刀片。

OOB配置用于配置AMM上刀片的设置,使用此功能前请确保满足以下要求:

  • AMM 上的远程刀片已连接到您的网络环境。
  • 该刀片是基于IMM的服务器。
  • 添加- 投币口参数强制 ASU 与远程 AMM 连接。否则,默认情况下,ASU 将尝试以 IMM 带外模式与提供的 IP 地址建立连接。并且- 投币口参数还可以识别刀片的IMM节点托架。
  • 添加- 主持人- 用户- 密码连接选项,因为它处于带外模式。

    - 主持人提供刀片所在的远程 AMM 的 IP 地址。

    - 用户- 密码向 AMM 进行身份验证。

命令示例:

要显示远程刀片 UEFI 设置:asu show uefi --host x.x.x.x --user xxx --password xxx --slot x

要设置远程刀片设置:asu set SETTING_NAME xxx --host x.x.x.x --user xxx --password --slot x --port 6090

在示例中,--主机xxx是远程 AMM 的 IP 地址,--用户xxx--密码 xxx用于验证连接,--插槽 x指的是刀片的 IMM 节点托架,以及- 港口提供AMM底盘接口的端口号;默认为6090。

AMM 上刀片的 OOB 配置支持的命令如下。

Command           Description

show              Display IMM server setting
set               Update IMM server setting
showdefault       Display IMM default server setting
showvalues        Display IMM values server setting
showgroups        Display IMM setting for server groups
batch             Execute several ASU commands simultaneously
createuuid        Generate a UUID value and set it
comparedefault    Compare the default value with the current value
delete            Delete an instance of a setting
help              Show description for selected settings
loaddefault       Load the default value
replicate         Replicate settings saved in a settings file
restore           Restore settings saved in a settings file
save              Save all or some settings to a settings file
setenc            Apply an encrypted value to a setting

答案2

嗯,下面的过程应该可以完成您想要的操作:

Issue the following command to view the current settings for the machine 
type and model:
asu show SYSTEM_PROD_DATA.SysInfoProdName
Issue the appropriate ASU command to set the machine type and model:
asu set SYSTEM_PROD_DATA.SysInfoProdName 7870-mmm

7870HS 22 的机器类型在哪里,mmm型号在哪里,例如D2G

Issue the following command to verify that you set the machine type 
and model number correctly:
asu show SYSTEM_PROD_DATA.SysInfoProdName
Issue the following command to view the current setting of the serial number:
asu show SYSTEM_PROD_DATA.SysInfoSerialNum
Issue the following ASU command on the SONAS node to set the serial number:
asu set SYSTEM_PROD_DATA.SysInfoSerialNum xxxxx
The variable xxxxx in the command stands for the serial number.
Issue the following command to verify that you set the serial number correctly:
asu show SYSTEM_PROD_DATA.SysInfoSerialNum

我没有机会验证这一点,所以 YMMV。

但是,必须有效。这是使用 ASU(带有拙劣的 HTML 转义)更新 HS22 上的 VPD 的官方指南。如果它不起作用,请向支持人员开具一张票。

编辑:修正和阐述

上述步骤直接回答了您的问题:“我们如何使用外部主机的高级设置实用程序与 HS22 IMM 通信?”,特别是您设置 VPD 的示例。它们还满足了您不需要从刀片本身与 IMM 通信的标准(您可以通过网络访问 IMM)。

他们还间接地回答了您的最后问题:“我需要向 IMM 发送哪些 IPMI 命令?当 asu 设置 MTM 和串行时,它会发送哪些 IPMI 命令?”

如果您尝试这些程序并验证它们中的任何一个确实正常工作,您可以转储网络流量并查看正在发送的内容。这不是一种非常用户友好的方法,但如果您想完成任务,它会起作用。

相关内容