新部署的 SRM 無法探索先前探索到的 XtrmIO

摘要: 新部署的 SRM 無法探索先前探索到的 XtrmIO

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

症状

問題如下所示:

400badrequest.PNG

原因

探索指令檔嘗試將子線「&」替換為「&」,即使它不在機型屬性中。 

line-24.PNG

解决方案

因應措施:
將子線「&」更換為「&」。如此一來,只有在包含「&」
時,才會更換子線程式:
1.登入執行 SolutionPack for Dell EMC XtremiO 的 SRM 收集器虛擬機器,問題

2.前往此目錄/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-backup

4.依下列方式編輯此檔案emc-xtremio-collect.sc1
更換行:24
列印 ${model} | replace 「 < size-and-capacity json-type=\」string\「」 > 「 |取代「 < /size-and-capacity > 」「」 |將「&」「&」 |set modelver

與此新行:
print ${model} | try replace 「 < size-and-capacity json-type=\」string\「」 > 「」 |嘗試更換「 < /size-and-capacity > 」「」 |嘗試更換正確修改腳本emc-xtremio-collect.sc1的「&」|set modelver

Contents,如下所示:

# 版權所有 (c) 2023,EMC Corporation。
#保留擁有權利。
#
#本套裝軟體含 EMC Corporation
# 的智慧財產,或已由協力廠商授權給 EMC Corporation。
#本軟體及其內含
之智慧財產的使用,明確限於授權號碼協定 (由 EMC 或代表 EMC 提供之授權
編號協定) 的條款與條件。
#**********************************************************************************************
#此檔案是從 SolutionPack 程式碼自動產生,不應手動編輯。*
# 此檔案中的任何手動變更都可能遺失。                                    *
# 僅根據 EMC 的正式建議編輯此檔案。                                     *
#*}}}}}
step testrestfulapi ${emcxtremio.host} 443
ssl-connect -t 30 ${emcxtremio.host} 443
步驟 testrestfulapiauth ${emcxtremio.host}
set tempb64 「${emcxtremio.username}:${emcxtremio.password?password}」
HTTP-get -k -t 30 -H 「授權:基本 ${tempb64?base64}「 -H 」Content-Type: application/json「 HTTPs://${emcxtremio.host}:443/api/json/types/clusters |json2xml |設定 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 」授權:基本 ${tempb64?base64}「 -H 」Content-Type: application/json「 ${xtremioclusterapi}|json2xml |設定 xtremioapianswer
列印 ${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」型號:${modelver}「


5.再次嘗試 XtremIO 探索,這次應該會成功

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