SDCLI command ouptut to CSV

Trying to get this to work.
http://blog.flaphead.com/2013/02/12/netapp-sdcli-disk-list-to-csv-with-powershell/

Input Object not found error on export-csv (last line)

Attached is sample output from sdcli disk list command.

Anyone have success taking output from command and putting in object and subsequent csv?

It sounds like the $tmpsdcliDiskListMatrix variable isn’t being populated correctly

I think you’ll need to work through the output file you have comparing the text to the script to determine if anything has changed in the way the text is formatted.

taking text output and converting it to objects is always a risky proposition as one slight change in the format of the output and your script is broken