PureStorage-OpenConnect / powershell-toolkit

The Pure Storage PowerShell Toolkit provides a number of different cmdlets ranging from core Windows Server, WMI, WSMAN, & .NET assemblies. The intention of the toolkit is to provide a library for customers and the Pure Storage field to use in troubleshooting, FlashArray reporting & other useful scenarios.
Apache License 2.0
22 stars 6 forks source link

Error Condition Examples #66

Open barkz opened 2 years ago

barkz commented 2 years ago

Is there a way to get data that would mimic what the SDK would return under different error conditions? I'm trying to develop scripts to assure our leadership that all is well with our arrays by checking various measures and showing that there's no problem.

"Are we below 85% (e.g.) on our array capacity?" is an easy one to check, and I can see where the field I need to check is returned.

What's harder to code for is, "Are my replicated snapshots all current on the target arrays?" I don't have a case now of a replicated snapshot that isn't current. I suppose I can set one up and force it into some error state and see how protect-group calls differ for the broken pair, but I'm not sure a "real life" break would look the same. I'd rather find some data files I can import into a PS context and inject them into how I'm handling those calls now to see if I detect the breakage -- or how I'd detect the breakage.

So, are there such sample of SDK results from various error conditions?