- Community Home
- >
- Storage
- >
- Entry Storage Systems
- >
- MSA Storage
- >
- MSA 2050 Scripting Question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2021 09:52 PM
тАО03-15-2021 09:52 PM
MSA 2050 Scripting Question
Hello,
We have 3 MSA's and would like to automate reporting on storage metrics (i.e. raw storage, allocated, free, etc.).
Currently, the process is manual through ssh CLI (Putty) by logging in and issuing the command 'show pools'.
I tried automating this by running plink -ssh with the proper credentials and -batch 'show pools' command. However, the output from plink is in xml which makes it almos unusable for manipulating further with PowerShell.
Appreciate any suggestions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2021 09:27 AM
тАО03-17-2021 09:27 AM
Re: MSA 2050 Scripting Question
Hi Palmero,
As per MSA Command line guide the output of CLI scripting would always be in XML format.
Reference MSA 2050 CLI guide page 15:
https://support.hpe.com/hpesc/public/docDisplay?docId=a00017709en_us
The CLI has two output formats:тАвConsole format, which is the human-to-computer interface (HCI).тАвXML API format, which is the computer-to-computer interface (CCI).
Scripting is not supported using console format because labels, field sizes, and order of fields may change in future firmware releases. To properly script CLI commands use XML API format, which is expected to remain consistent from release to release; field names will be consistent and new functionality will be added as new fields.
Note: I do not have the expertise with scripting. I am just sharing information from the CLI guide.
While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2021 09:53 AM
тАО03-17-2021 09:53 AM
Re: MSA 2050 Scripting Question
Hello AnrunKKR,
Yes, I am aware of the guide and need to use XML scripting. I was looking for some examples. It is unfortunate that HPE MSA supports CLI commands only from an interactive session. For example, I can issue command "show pools" through a PuTTy interactive session, but when this same command is launched from plink, it generates a cumbersome XML report that's difficult to manipulate through Power Shell.
Currently, we leverage Power Shell to extract metrics from two VNX arrays, two Isilon and one 3PAR.
We also have the 3 MSA systems that will now require scripting in XML.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2021 05:30 AM
тАО03-18-2021 05:30 AM
Re: MSA 2050 Scripting Question
Hi Palmero,
I do understand your concern
However, we do not have any suggestions in this regard.
While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company