Hi Allen,
Here is an example:
[Array]$command = @("set diag;volume", "show", "-fields", "tiering-minimum-cooling-days")
Try{
$api = $("<system-cli><args><arg>" + ($command -join "</arg><arg>") + "</arg></args></system-cli>")
Write-Host $("Executed Command`: " + $([String]::Join(" ", $command)))
$response = Invoke-NcSystemApi -Request $api -ErrorAction Stop
}Catch{
Write-Warning -Message $("Failed Executing Command`: " + $([String]::Join(" ", $command))
Break;
}
$response.results."cli-output"
Hope that helps
/Matt
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.