Naray
Guest
|
Posted:
Tue Feb 01, 2005 4:49 am Post subject:
checkpoint log depth - wmi/vbs script not working |
|
|
Hello,
I have a script which attempts to pull the checkpoint logdepth for
individual storage group instances. The script gets the instances, but can't
get the actual value for the log depth. The counter is functioning as I can
see the same data in perfmon.
Is this a permissions issue with the script? Impersonation issues?
Script:
strComputer = "."
strClass = "Win32_PerfRawData_ESE_DatabaseInstances"
set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\"
& strComputer & "\root\cimv2")
set oInstances = objWMIService.ExecQuery("SELECT * FROM " & strClass)
for each instance in oInstances
if instr(instance.Name, "_Total") = 0 then
wscript.echo instance.Name & " : " _
& instance.LogGenerationCheckpointDepth
end if
next
|
|