Exchange Server 2007 monitoring using WMI script

Home Forums Messaging Software Exchange 2007 / 2010 / 2013 Exchange Server 2007 monitoring using WMI script

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    albertwt
    Member
    #154836

    Hi All,

    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:

    Code:
    strComputer = “ExCluster01”
    nSpace = “rootcimv2”
    Set objSWbemServices = GetObject(“winmgmts:\” & strComputer & nSpace)

    Set objWMIService = GetObject(“winmgmts:” & “{impersonationLevel=impersonate}!\” & strComputer & “rootcimv2”)

    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

    Thanks,

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.