新しく導入されたSRMが以前に検出されたXtrmIOを検出できない

摘要: 新しく導入されたSRMが以前に検出されたXtrmIOを検出できない

本文适用于 本文不适用于 本文并非针对某种特定的产品。 本文并非包含所有产品版本。

症状

以下に示す問題:

400badrequest.PNG

原因

検出スクリプトは、モデル プロパティに存在しないにもかかわらず、サブ文字列「&」を「&」に置き換えようとしていました。 

行-24.PNG

解决方案

回避策:
サブ文字列「&」を「&」に置き換えます。この方法では、サブストリングに「&」
が含まれている場合にのみサブストリングが置き換えられます。手順:
1.問題

2のSolutionPack for Dell EMC XtremiOを実行しているSRMコレクターVMにログインします。このディレクトリ /opt/APG/Tools/Script-Engine/Default/data/emc-xtremio-collect-emc-xtremio


3 に移動します。emc-xtremio-collect.sc1
cp emc-xtremio-collect.sc1 emc-xtremio-collect.sc1-backup4 のコピーをバックアップ

します。次のようにemc-xtremio-collect.sc1 ファイルを編集します。
replace line:24
print ${model} | replace "<size-and-capacity json-type=\"string\">" "" |「</size-and-capacity>」を置き換える |replace "&" "&" |set modelver

with this new line:
print ${model} | try replace "<size-and-capacity json-type=\"string\">" "" |「</size-and-capacity>」を置き換えてみます |try replace "&" "> |set modelver

正しく変更されたスクリプトの内容 emc-xtremio-collect.sc1 は次のようになります。

# Copyright (c) 2023, EMC Corporation.
#All rights reserved.(不許複製・禁無断転載)
#
#このソフトウェアには、EMC Corporation
#の知的財産が含まれているか、サード パーティーからEMC Corporationにライセンスが付与されています。
#本ソフトウェアおよびその中
に含まれる知的財産#の使用は、EMCまたはその代理人によって提供されるライセンス
番号契約の契約条件に明示的に制限されます。
#**********************************************************************************************
#このファイルはSolutionPackコードから自動生成されているため、手動で編集しないでください。*
# このファイルの手動による変更は、失われる可能性があります。                                    *
# このファイルは、EMCからの正式な推奨事項に基づいてのみ編集してください。                                     *
#******
ステップtestrestfulapi ${emcxtremio.host} 443
ssl-connect -t 3 0 ${emcxtremio.host} 443
ステップtestrestfulapiauth ${emcxtremio.host}
set tempb64 "${emcxtremio.username}:${emcxtremio.password?password}"
http-get -k -t 30 -H "Authorization: Basic ${tempb64?base64}" -H "Content-Type: application/json" https://${emcxtremio.host}:443/api/json/types/clusters |json2xml |set xtremioapianswer
print ${xtremioapianswer} | xpath "/object/clusters/object/name/text()" | set xtremioapianswercluster
print ${xtremioapianswer} | xpath "(/object/clusters/object/href/text())[1]" | set xtremioclusterapi
println "Found cluster: ${xtremioapianswercluster}"
http-get -k -t 30 -H "Authorization: Basic ${tempb64?base64}" -H "Content-Type: application/json" ${xtremioclusterapi}|json2xml |set xtremioapianswer
print ${xtremioapianswer} | xpath "/object/content/sys-sw-version/text()" | set version
print ${xtremioapianswer} | xpath "/object/content/size-and-capacity" | set model
print ${model} | try replace "<size-and-capacity json-type=\"string\">" |「</size-and-capacity>」を置き換えてみます |「> 」> |set modelver
println 「Firmware Version: ${version}"
println "Model: ${modelver}"


5.XtremIOの検出を再試行すると、今回は成功するはずです。

文章属性
文章编号: 000217570
文章类型: Solution
上次修改时间: 13 11月 2023
版本:  2
从其他戴尔用户那里查找问题的答案
支持服务
检查您的设备是否在支持服务涵盖的范围内。