VMware {code} Community
tmilner
Enthusiast
Enthusiast

On a QueryPerf call, receiving "A specified parameter was not correct. query.interval"

I have 1 customer that repeatedly gets this error. He has a VC:2.5.0-119598 system. I'm requesting 5-minute performance data on the most recent 5-minute interval. In the logs I can see sample times like "12/28/2008 7:25:00 AM -- 12/28/2008 7:30:00 AM". And yes, that's the time on the VC, not the client system. And this code has worked on over a hundred other customer's systems.

Does anyone have an idea? If the customer had ESX 2.5 systems connected to this VC, would that result in this error (I know it would if I requested real-time data). Is there some bug in this build (119598) of the VC? If somehow performance collection stopped on the VC would this occur?

TIA,

Tom

Tags (3)
Reply
0 Kudos
2 Replies
Steve_Jin
Expert
Expert

Do you want to share the code snippet showing how you used the QueryPerf?

If you use VI Client connecting to VC, do you have problem to get the 5 minute interval stats?

Steve JIN, VMware Engineering

Creator of VI Java API: http://vijava.sf.net

Steve JIN Author of VMware VI and vSphere SDK; Creator of open source VI Java API (http://vijava.sf.net); Blogger at http://www.doublecloud.org
Reply
0 Kudos
njain
Expert
Expert

Hi Tom,

"A specified parameter was not correct. query.interval" error occurs only when the specified interval to query the performance statistics is incorrect.

As you have mentioned that you are querying the data for 5 minute interval, which is historical data, you need to validate if this historical interval exists on your VirtualCenter. It may be that the specific interval might have been customized to capture data for different sampling period.

To find this, you can either check the "historicalInterval" property of the PerformanceManager object via MOB. This property is an array of PerfInterval[] and should have 300 as the sampling period. Or you can connect VI client to VC, and in the VirtualCenter Management Server Configuration window, under the "Statistics", you will see the available "Interval Duration".

Hope this will resolve your issues.

Neha

Reply
0 Kudos