#Volume Efficiency auto-state setting with PowerShell?

1 messages · Page 1 of 1 (latest)

azure elbow
#

There is a field in the volume efficiencies called "auto-state" that does not seem to be accessible using standard PowerShell commands (Get-NcSis or Get-NcVolume). From the CLI, it is only visable in diag mode. Does anyone know any way to pull this information using PowerShell, other than using Invoke-NcSSH?

This is the command to view it in the CLI (while in diag):
vol efficiency show -volume vol1 -fields auto-state

I'm asking because we have workflows in WFA that are failing when we try to set the efficiencies on volumes that have been "deprioritized".

violet spruce
#

Hello, you can try to get it using the ontap Rest-Api private cli and the invoke-restmethod and some dev work in order to pack everything. It works great if you are in a ontap version that support rest-api. the netapp powershell library does offer the private cli access unfortunately.

azure elbow
#

Thanks, @violet spruce, I'll give that a try.
Apparently there is now an auto-promote feature in OnTap 9.12.1, so this may not even be an issue (hopefully).

hollow marsh
#

That's a new, where did you see this? (auto-promote for deprioritized volumes with 9.12.1)

azure elbow
#

FYI for anyone following this or anyone that finds this later, Matt Beattie from NetApp gave some examples of the Passthrough CLI that @violet spruce mentioned above in this Community thread. Worked great for me, so hopefully it will help some of you out as well.

https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PowerShell-equivalent-of-discovery-mode/m-p/451567/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExVUUNTUVU4MzBKMzhPfDQ1MTgzMHxTVUJTQ1JJUFRJT05TfGhL#M6862