Microsoft Virtualization Discussions

Retrieving performance data wt get-ncperfdata (no values via REST-API, strange values via ONTAPI)

Arvato_HDI
1,121 Views

Hi all,

 

I'm trying to retrieve performance counters with cmdlet get-ncperfdata (PSTC 9.14.1).
Connected to the ONTAP cluster (ontap 9.12.1) with switch '-ONTAPI' gives me many huge values (without this switch there are no values at all, names only).

example:

Get-NcPerfData -name resource_headroom_cpu -Instance * | select -ExpandProperty counters

output (first lines only):

NcController Name Value
------------ ---- -----
10.10.10.1 archive_uuid_hi 1291860897976488975
10.10.10.1 archive_uuid_lo 9065273166377547423
10.10.10.1 current_intercluster_ops 71181521
10.10.10.1 current_latency 37044145714
10.10.10.1 current_ops 372875157
10.10.10.1 current_utilization 10033535085
10.10.10.1 current_utilization_total 67350009003

...

10.10.10.1 service_time 22830412177

...

 

How to get values like "latency: 2 ms" or "utilization: 20%"?
I was trying to calculate the values by "service_time", but the values will not become useable (or they do not match to values seen in Unified Manager). How to do that? How to get a value for "performance capacity used"?

 

And what about the error using REST-API (connect-nccontroller without switch -ONTAPI)?

 

Kind regars,

Holger

1 ACCEPTED SOLUTION

mbeattie
807 Views

Hi Holger,

 

If the CmdLet isn't working as expected for you have you tried using the REST API CLI? Here's an example (just change the CLI command in the code to the command you would invoke to get the performance data)

 

https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PowerShell-equivalent-of-discovery-mode/td-p/451497 

 

Or have a look at "Invoke-NcSysstat"

 

Hope that helps

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

2 REPLIES 2

mbeattie
808 Views

Hi Holger,

 

If the CmdLet isn't working as expected for you have you tried using the REST API CLI? Here's an example (just change the CLI command in the code to the command you would invoke to get the performance data)

 

https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PowerShell-equivalent-of-discovery-mode/td-p/451497 

 

Or have a look at "Invoke-NcSysstat"

 

Hope that helps

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Arvato_HDI
781 Views

Thank you, Matt. I think, it's not that what I looking for.
In the last days had learnt, I has to start a Scan with Start-NcPerfObject (with -duration 1) and then the values are looking fine (if there is no old sample present; must deleted in advance).

Kind regards,

Holger

Public