Closed sloanster4000 closed 3 years ago
As a note I switched from IP's to hostnames
can you try running against the one machine? ./bigipreport.ps1 example.xml loadbalancer.example.com
When I run it with just one listed no issues. By introducing a second I see the issue. You thinking we have a race condition going on here?
I'm trying to expose the errors from the child to the parent process, but it's not working so far. You see the child errors reported when the parent tries a Receive-Job call. The error gets reported on that line, and not on the original line. Kind of a pain. :(
In the current state when these errors happen, it generates an email error notification and the end user would be unsure how to resolve. == not useful error message.
I agree. The forked model does not effectively capture the errors/warnings in the child processes. I've tried a number of things, but still not really happy with it. :(
I'm handling some errors explicitly now. It's better, but we likely still have a ways to go.
The following handled errors was thrown during the execution
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~