Users Guide
分析规则
您可以手动编辑所导出的机箱配置配置文件的 XML 文件属性。
XML 文件包含以下属性:
• System Conguration,这是父节点。
• component,这是主要的子节点。
• 属性,其中包含名称和值。您可以编辑这些字段。例如,您可以编辑 Asset Tag 值,如下所示:
<Attribute Name="ChassisInfo.1#AssetTag">xxxxxx</Attribute>
xml 文件示例如下:
<SystemConfiguration Model="PowerEdge M1000e
"ServiceTag="NOBLE13"
TimeStamp="Tue Apr 7 14:17:48 2015" ExportMode="2">
<!--Export type is Replace-->
<
!--Exported configuration may contain commented attributes. Attributes may be commented due to
dependency,
destructive nature, preserving server identity or for security reasons.-->
<Component FQDD="CMC.Integrated.1">
<Attribute Name="ChassisInfo.1#AssetTag">00000</Attribute>
<Attribute Name="ChassisLocation.1#DataCenterName"></Attribute>
<Attribute Name="ChassisLocation.1#AisleName"></Attribute>
<Attribute Name="ChassisLocation.1#RackName"></Attribute>
….
</Component>
</SystemConfiguration>
使用配置文件通过 RACADM 配置多个 CMC
您可以使用配置文件来通过 RACADM 配置一个或多个具有相同属性的 CMC 。
使用组 ID 和对象 ID 查询特定 CMC 卡时,RACADM 从检索到的信息创建 racadm.cfg 配置文件。通过将文件导出到一个或多个
CMC,可以在最短时间内以相同属性配置控制器。
注: 某些配置文件包含独特的 CMC 信息(如静态 IP 地址),在将文件导出到其他 CMC 之前必须修改这些信息。
1 使用 RACADM 查询包含所需配置的目标 CMC。
注: 生成的配置文件为 myle.cfg。您可以重命名该文件。.cfg 文件不包含用户密码。在将 .cfg 文件上载到新 CMC 后,您必
须重新添加所有密码。
2 打开连接至 CMC 的远程 RACADM 会话,登录,并键入:
racadm getconfig -f myfile.cfg
注: 仅远程 RACADM 界面支持使用 getconfig -f 将 CMC 配置重定向至文件。
3 使用简单文本编辑器(可选)修改配置文件。配置文件中的任何特殊格式字符都可能损坏 RACADM 数据库。
4 使用新创建的配置文件修改目标 CMC。在命令提示符处,键入:
racadm config -f myfile.cfg
5 重设已配置的目标 RAC。在命令提示符处键入:
racadm reset
getconfig -f myfile.cfg 子命令(步骤 1)为活动 CMC 请求 CMC 配置并生成 myle.cfg 文件。如果需要,可以将文件重
命名或将其保存到另一个位置。
98
配置 CMC