MSA Storage
1822437 Members
2577 Online
109642 Solutions
New Discussion юеВ

Convert XML output to human readable via SSH

 
SOLVED
Go to solution
FrediCocon
Occasional Advisor

Convert XML output to human readable via SSH

Hello, I have a bash script that runs from a Linux server, it makes connections via SSH to Storage such as HPE 3par and HPE Primera, I want to implement this on an HPE MSA 2060, the script runs some tasks and validations with the sshpass command, but in the MSA the output that it returns is the XML format, for example to validate the events with "show task" or "show events" this returns it in XML format, is there a way to change the output from the XML format to human readable? thanks a lot for your help

msa.jpg

 

 

 

 

 

 

 

4 REPLIES 4
venkat_y
HPE Pro
Solution

Re: Convert XML output to human readable via SSH

Hello@FrediCocon,
Please check the link below for CLI output modes and scripts to access CLI,
HPE MSA 1060/2060/2062 CLI: https://www.hpe.com/psnow/doc/a00105313en_us

You may use the xmllent, XMLStarlet, or Python scripts to view readable format.

Hope this helps!
Regards,
Venkat

If you feel this was helpful please click the KUDOS! thumb below!
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
support_s
System Recommended

Query: Convert XML output to human readable via SSH

Hello,

 

Let us know if you were able to resolve the issue.

 

If you have no further query, and you are satisfied with the answer then kindly mark the topic as Solved so that it is helpful for all community members.

 

Please click on "Thumbs Up/Kudo" icon to give a "Kudo".

 

Thank you for being a HPE valuable community member.


Accept or Kudo

FrediCocon
Occasional Advisor

Re: Convert XML output to human readable via SSH

Hello, thank you for your support, we will explore these options, but surely here is the answer

Regards

Fredi Coc├│n

Sunitha_Mod
Moderator

Re: Convert XML output to human readable via SSH

Hello Fredi,

Perfect!

We are glad to know your concern has been addressed. 



Thanks,
Sunitha G
I'm an HPE employee.
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo