checkpoint log depth - wmi/vbs script not working
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
checkpoint log depth - wmi/vbs script not working

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Naray
Guest





Posted: Tue Feb 01, 2005 4:49 am    Post subject: checkpoint log depth - wmi/vbs script not working Reply with quote

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

Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
Contact Us
New Topics Powered by phpBB