새로 구축된 SRM이 이전에 검색된 XtrmIO를 검색할 수 없음

摘要: 새로 구축된 SRM이 이전에 검색된 XtrmIO를 검색할 수 없음

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

症状

아래와 같은 문제:

400badrequest.PNG

原因

검색 스크립트가 모델 속성에 없는 경우에도 하위 "&"를 "&"로 대체하려고 했습니다. 

line-24.PNG

解决方案

해결 방법:
하위 저장소 "&"를 "&"로 교체합니다. 이렇게 하면 "&"가 포함된 경우에만 하위스트럭처가 대체됩니다.
절차:
1. 문제

2에서 SolutionPack for Dell EMC XtremiO를 실행하는 SRM Collector 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>" "" 교체 | "&" "&" |set modelver

를 이 새 줄로 교체:
print ${model} | try replace "<size-and-capacity json-type=\"string\">" "" | try replace "</size-and-capacity>" "" | try replace "&" "&" |set modelver

Contents of a correctly modified script emc-xtremio-collect.sc1 은 다음과 같습니다. 

# Copyright (c) 2023, EMC Corporation.
# 판권.
#
# 본 소프트웨어에는 EMC Corporation
#의 지적 재산권이 포함되어 있거나 타사로부터 EMC Corporation에 라이선스가 부여됩니다.
# 본 소프트웨어와 #
에 포함된 지적 재산권의 사용은 EMC에서 또는 EMC를 대신하여 제공하는 라이센스
번호 계약의 약관으로 명시적으로 제한됩니다.
#**********************************************************************************************
# 이 파일은 SolutionPack 코드에서 자동으로 생성되었으며 수동으로 편집해서는 안 됩니다. *
# 이 파일의 수동 변경은 손실될 수 있습니다.                                    *
# EMC의 공식 권장 사항에 대해서만 이 파일을 편집합니다.                                     *
#********Step
testrestfulapi ${emcxtremio.host} 443
ssl-connect -t 30 ${emcxtremio.host} 443
Step 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\"> "" | try replace "</size-and-capacity>" "" | try replace "&" "&" |set modelver
println "Firmware Version: ${version}"
println "Model: ${modelver}"


5. XtremIO 검색을 다시 시도하면 이번에는 성공해야 합니다.

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