locked
Need help in using WMI to monitor Exchange Server 2007 RRS feed

  • Question

  • Hi Everyone,

    I'd like to know if anyone here have WMI script to monitor Exchange Server 2007 ?
    according to the following article yes it is possible: http://blogs.msdn.com/b/exchangefaqs/archive/2008/01/29/exchange-server-2007-application-programming-interfaces-apis.aspx
    and also here:http://www.paessler.com/manuals/prtg8/wmi_exchange_server_2007_sensor.htm

    My goal is to be able to integrate my 3rd party monitoring software which currently uses WMI (not Paessler but eMite) to query each server service and I wonder if anyone can share your script here.

    the following script can generate the whole lot of classes but I'm not sure how to use it:

    strComputer = "ExCluster01"
    nSpace = "\root\cimv2"
    Set objSWbemServices = GetObject("winmgmts:\\" & strComputer & nSpace)
     
    Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
     
    Set colClasses = objSWbemServices.SubclassesOf()
    For Each objClass In colClasses
     WScript.Echo objClass.Path_.Class
     Set colProperties = objClass.Properties_
     For Each objProperty In colProperties
      WScript.Echo vbTab & objProperty.Name
     Next
    Next
    

    Any kind of help would be greatly appreciated.

    Thanks.


    /* Server Support Specialist */
    Monday, May 30, 2011 3:47 AM

Answers