- Community Home
- >
- Storage
- >
- Entry Storage Systems
- >
- MSA Storage
- >
- MSA 2050 Scripting Question
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Email to a Friend
- 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.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP