SDCLI command ouptut to CSV

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Richard Siddaway Richard Siddaway 3 years, 8 months ago.

  • Author
    Posts
  • #10477
    Profile photo of Joe Bruns
    Joe Bruns
    Participant

    Trying to get this to work.

    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?

  • #10493
    Profile photo of Richard Siddaway
    Richard Siddaway
    Moderator

    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

You must be logged in to reply to this topic.