How to efficiently retrieve data via WMI
I'm working on application which connects to remote hosts and retrieve the
metrics like CPU utilization, RAM usage, Disk load, ... In order to
connect remotely and retrieve such metrics I use Windows Management
Instrumentation (WMI). I create WQL query for each metric. For example, to
access 4 types metrics I use 4 different WQL queries and this lead to some
delays in whole monitoring process. My question is that, is there any way
to use only one WQL (i.e. use only 1 remote connection attempt) and then
retrieve the necessary data (metrics) from the result of that WQL query?
I'm looking forward to your replies. Thanks.
No comments:
Post a Comment