Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get system space usage via PureStoragePowerShellSDK2 #1

Closed
hugh-martin opened this issue Apr 30, 2021 · 2 comments
Closed

How to get system space usage via PureStoragePowerShellSDK2 #1

hugh-martin opened this issue Apr 30, 2021 · 2 comments
Labels
question Further information is requested upcoming_release

Comments

@hugh-martin
Copy link

It seems as if the PureStoragePowerShellSDK (v1) module is not compatible with PowerShell 7, so I need to move to the PureStoragePowerShellSDK2 module. Our arrays support it, so we're good there. With the v1 module, I am using the Get-PfaArraySpaceMetrics cmdlet to get some data from our arrays. How can I get this information when using the PureStoragePowerShellSDK2 module with PowerShell 7?

@mikenelson-io
Copy link
Collaborator

The FA SDK v1 requires .Net Framework, so it is not compatible with .net Core, as the documentation states.
PowerShell 5.1 is installed by default on every Windows 10/Server OS, so SDK v1 will run unless you have a requirement for PoSH v7.x, such as possibly you are running on Linux or Mac. The next release of 1.x should have .net Core compatibility. Also, as mentioned in the documentation and videos, you can run SDK v1 and SDK v2 together in a PowerShell 5.1 session.

Get-Pfa2ArraySpace will provide you with some metrics. SDKv2 does not yet have full API parity with Purity so it may not have all of the data exposure that SDK v1 has. If that specific data is still required, until the next releases are available, we would suggest 1) continuing to use SDK v1 in PoSH 5.1, or 2) use another SDK such as Python to gather your required data.

@mikenelson-io mikenelson-io added question Further information is requested upcoming_release labels Apr 30, 2021
@hugh-martin
Copy link
Author

Got it. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested upcoming_release
Projects
None yet
Development

No branches or pull requests

2 participants