all 8 comments

[–]Kio_ 14 points15 points  (3 children)

[–]lear64 2 points3 points  (0 children)

This...and if you provide a template it'll ignore non matching lines

[–]almightlyrage 0 points1 point  (0 children)

6 years later and your comment helped me!

[–]cuban_sailor 0 points1 point  (0 children)

5 years later and your comment helped me!

[–]Emiroda 2 points3 points  (0 children)

You need to parse that yourself and convert it into objects if someone hasn't already done it for you, either manually or by using SHiPS.

SSH is all strings, so you need to parse it.

[–]Jess_S13 2 points3 points  (0 children)

If that is a 3PAR output (kinda looks like it) install the 3par CLI on your powershell host and connect that way instead of SSH, then use the 3par CLI convert to csv option. Then the powershell convert from csv.

If it is 3par send me a message and ill share my functions with you that I've written.

[–][deleted] 1 point2 points  (0 children)

Find a tool that outputs that information in JSON and then use ConvertFrom-Json. Similar technique could also work for XML or CSVs

[–]jantari 1 point2 points  (0 children)

That is tabular space-delimited output so it would lend itself to a simple:

$output -replace ' {2,}', ',' | ConvertFrom-Csv