Get-OvLogicalInterconnectGroup -Name "XXXXXXXXX" -ErrorAction Stop | Set-OVUplinkSet -UplinkSetName "YYYYYYYYYY" -AddNetwork "ZZZZZZZZZZZZZ TaskState Error" #620
-
Hello, I contact you for this problem. when I add a network via the command: Get-OvLogicalInterconnectGroup -Name "XXXXXXXXX" -ErrorAction Stop | Set-OVUplinkSet -UplinkSetName "YYYYYYYYYY" -AddNetwork "ZZZZZZZZZZZZZZ" I receive in return an error message which indicates that the TaskState is in error. I logged into GUI and in Activity my error does not appear. Do you have an idea ? Regards, |
Beta Was this translation helpful? Give feedback.
Answered by
ChrisLynchHPE
Nov 3, 2022
Replies: 1 comment 2 replies
-
You need to capture the task object into a variable, then look at the $task = Get-OvLogicalInterconnectGroup -Name "XXXXXXXXX" -ErrorAction Stop | Set-OVUplinkSet -UplinkSetName "YYYYYYYYYY" -AddNetwork "ZZZZZZZZZZZZZZ"
if ($task.taskState -ne "Complete") {
$task.taskErrors | ForEach {
Write-Host "Error Message" $_.details
Write-Host "Recommended actions:" $_.recommendedActions
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ChrisLynchHPE
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to capture the task object into a variable, then look at the
.taskErrors
property: