ONTAP Rest API Discussions
ONTAP Rest API Discussions
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".
Solved! See The Solution
Hi Jim,
Here's an example of using the ONTAP REST CLI. You can either use ZAPI or REST API to invoke a CLI command. The following link has examples of both (you would just have to change the command in the example)
Hope that helps
/Matt
Hello Jim,
There is a Netapp efficiency check script that is supported by this community
https://www.powershellgallery.com/packages/NetAppEfficiencyCheck/1.4
I am not sure if the "auto-state" attribute is listed among the outputs in the latest version 1.4.
I hope this leads you in the right direction
https://kb.netapp.com/onprem/ontap/dm/Efficiency/How_to_check_AFF_storage_efficiency_with_the_NetApp_PowerShell_Toolkit
auto-state will show if a volume is deprioritized, only available in diagnostic mode so have to get it through SSH
Please check the below lib for "auto-state"
https://www.powershellgallery.com/packages/NetAppEfficiencyCheck/1.2/Content/NetAppEfficiencyCheck.ps1
Hi Jim,
Here's an example of using the ONTAP REST CLI. You can either use ZAPI or REST API to invoke a CLI command. The following link has examples of both (you would just have to change the command in the example)
Hope that helps
/Matt
Thank you, @mbeattie , this is exactly what I was looking for, it works great!