Newly deployed SRM cannot discover previously discovered XtrmIO

Riepilogo: Newly deployed SRM cannot discover previously discovered XtrmIO

Questo articolo si applica a Questo articolo non si applica a Questo articolo non è legato a un prodotto specifico. Non tutte le versioni del prodotto sono identificate in questo articolo.

Sintomi

Issue shown below:

400badrequest.PNG

Causa

The discovery script was trying to replace substring "&amp ;" with "&" even though it was not present in model property. 

line-24.PNG

Risoluzione

Workaround:
Replace substring "&" with "&amp". This way, it will replace the substring only if it contains "&amp ;"
Procedure:
1. Log into the SRM collector VM running the SolutionPack for Dell EMC XtremiO in question

2. Go to this directory /opt/APG/Tools/Script-Engine/Default/data/emc-xtremio-collect-emc-
xtremio


3. Backup a copy of emc-xtremio-collect.sc1
cp emc-xtremio-collect.sc1 emc-xtremio-collect.sc1-backup

4. Edit this file emc-xtremio-collect.sc1 as followed:
Replace line:24
print ${model} | replace "<size-and-capacity json-type=\"string\">" "" | replace "</size-and-capacity>" "" | replace "&" "&" |set modelver

with this new line:
print ${model} | try replace "<size-and-capacity json-type=\"string\">" "" | try replace "</size-and-capacity>" "" | try replace "&amp;" "&" |set modelver

Contents of a correctly modified script emc-xtremio-collect.sc1 looks like this: 

# Copyright (c) 2023, EMC Corporation.
# All Rights Reserved.
#
# This software contains the intellectual property of EMC Corporation
# or is licensed to EMC Corporation from third parties.
# Use of this software and the intellectual property contained therein
# is expressly limited to the terms and conditions of the License
# Agreement under which it is provided by or on behalf of EMC.
#**********************************************************************************************
# This file has been auto-generated from SolutionPack code and should not be edited manually. *
# Any manual changes in this file can potentially be lost.                                    *
# Edit this file only on formal recommendations from 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 "&amp;" "&" |set modelver
println "Firmware Version: ${version}"
println "Model: ${modelver}"


5. Try the XtremIO discovery again and it should be successful this time

Proprietà dell'articolo
Numero articolo: 000217570
Tipo di articolo: Solution
Ultima modifica: 19 mag 2026
Versione:  3
Trova risposta alle tue domande dagli altri utenti Dell
Support Services
Verifica che il dispositivo sia coperto dai Servizi di supporto.